Class Union


public final class Union extends
A union is a complex type with children in Field By default ids in the type vector refer to the offsets in the children optionally typeIds provides an indirection between the child offset and the type id for each child `typeIds[offset]` is the id used in the type vector
  • Constructor Details

    • Union

      public Union()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsUnion

      public static Union getRootAsUnion(ByteBuffer _bb)
    • getRootAsUnion

      public static Union getRootAsUnion(ByteBuffer _bb, Union obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public Union __assign(int _i, ByteBuffer _bb)
    • mode

      public short mode()
    • typeIds

      public int typeIds(int j)
    • typeIdsLength

      public int typeIdsLength()
    • typeIdsVector

      public typeIdsVector()
    • typeIdsVector

      public typeIdsVector( obj)
    • typeIdsAsByteBuffer

      public ByteBuffer typeIdsAsByteBuffer()
    • typeIdsInByteBuffer

      public ByteBuffer typeIdsInByteBuffer(ByteBuffer _bb)
    • createUnion

      public static int createUnion( builder, short mode, int typeIdsOffset)
    • startUnion

      public static void startUnion( builder)
    • addMode

      public static void addMode( builder, short mode)
    • addTypeIds

      public static void addTypeIds( builder, int typeIdsOffset)
    • createTypeIdsVector

      public static int createTypeIdsVector( builder, int[] data)
    • startTypeIdsVector

      public static void startTypeIdsVector( builder, int numElems)
    • endUnion

      public static int endUnion( builder)