Class AIMaterialProperty

All Implemented Interfaces:
Pointer

public class AIMaterialProperty extends Struct<AIMaterialProperty>

 struct aiMaterialProperty {
     {@link AIString struct aiString} mKey;
     unsigned int mSemantic;
     unsigned int mIndex;
     unsigned int mDataLength;
     aiPropertyTypeInfo mType;
     char * mData;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MKEY
      The struct member offsets.
    • MSEMANTIC

      public static final int MSEMANTIC
      The struct member offsets.
    • MINDEX

      public static final int MINDEX
      The struct member offsets.
    • MDATALENGTH

      public static final int MDATALENGTH
      The struct member offsets.
    • MTYPE

      public static final int MTYPE
      The struct member offsets.
    • MDATA

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

    • AIMaterialProperty

      public AIMaterialProperty(ByteBuffer container)
      Creates a AIMaterialProperty 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<AIMaterialProperty>
    • mKey

      public AIString mKey()
      Returns:
      a AIString view of the mKey field.
    • mSemantic

      public int mSemantic()
      Returns:
      the value of the mSemantic field.
    • mIndex

      public int mIndex()
      Returns:
      the value of the mIndex field.
    • mDataLength

      public int mDataLength()
      Returns:
      the value of the mDataLength field.
    • mType

      public int mType()
      Returns:
      the value of the mType field.
    • mData

      public ByteBuffer mData()
      Returns:
      a ByteBuffer view of the data pointed to by the mData field.
    • create

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

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

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

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

      public static AIString nmKey(long struct)
      Unsafe version of mKey().
    • nmSemantic

      public static int nmSemantic(long struct)
      Unsafe version of mSemantic().
    • nmIndex

      public static int nmIndex(long struct)
      Unsafe version of mIndex().
    • nmDataLength

      public static int nmDataLength(long struct)
      Unsafe version of mDataLength().
    • nmType

      public static int nmType(long struct)
      Unsafe version of mType().
    • nmData

      public static ByteBuffer nmData(long struct)
      Unsafe version of mData.