Class FlexBuffers.TypedVector

  • Enclosing class:
    FlexBuffers

    public static class FlexBuffers.TypedVector
    extends FlexBuffers.Vector
    Object that represents a set of elements with the same type
    • Constructor Detail

      • TypedVector

        TypedVector​(ReadBuf bb,
                    int end,
                    int byteWidth,
                    int elemType)
    • Method Detail

      • isEmptyVector

        public boolean isEmptyVector()
        Returns whether the vector is empty
        Returns:
        true if empty
      • getElemType

        public int getElemType()
        Return element type for all elements in the vector
        Returns:
        element type
      • get

        public FlexBuffers.Reference get​(int pos)
        Get reference to an object in the Vector
        Overrides:
        get in class FlexBuffers.Vector
        Parameters:
        pos - position of the object in Vector
        Returns:
        reference to element