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
  • Field Details

  • Constructor Details

    • TypedVector

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

    • empty

      public static FlexBuffers.TypedVector empty()
    • 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