Class MLCoordinateFrameUID

All Implemented Interfaces:
Pointer

public class MLCoordinateFrameUID extends Struct<MLCoordinateFrameUID>

 struct MLCoordinateFrameUID {
     uint64_t data[2];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • DATA

      public static final int DATA
      The struct member offsets.
  • Constructor Details

    • MLCoordinateFrameUID

      public MLCoordinateFrameUID(ByteBuffer container)
      Creates a MLCoordinateFrameUID instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<MLCoordinateFrameUID>
    • data

      public LongBuffer data()
      Returns:
      a LongBuffer view of the data field.
    • data

      public long data(int index)
      Returns:
      the value at the specified index of the data field.
    • create

      public static MLCoordinateFrameUID create(long address)
      Returns a new MLCoordinateFrameUID instance for the specified memory address.
    • createSafe

      public static @Nullable MLCoordinateFrameUID createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static MLCoordinateFrameUID.Buffer create(long address, int capacity)
      Create a MLCoordinateFrameUID.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable MLCoordinateFrameUID.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • ndata

      public static LongBuffer ndata(long struct)
      Unsafe version of data().
    • ndata

      public static long ndata(long struct, int index)
      Unsafe version of data.