Class AIMaterial.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<AIMaterial>, NativeResource, Pointer
Enclosing class:
AIMaterial

public static class AIMaterial.Buffer extends StructBuffer<AIMaterial,AIMaterial.Buffer> implements NativeResource
An array of AIMaterial structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new AIMaterial.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by AIMaterial.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • mProperties

      public PointerBuffer mProperties()
      Returns:
      a PointerBuffer view of the data pointed to by the mProperties field.
    • mNumProperties

      public int mNumProperties()
      Returns:
      the value of the mNumProperties field.
    • mNumAllocated

      public int mNumAllocated()
      Returns:
      the value of the mNumAllocated field.
    • mProperties

      public AIMaterial.Buffer mProperties(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mProperties field.
    • mNumAllocated

      public AIMaterial.Buffer mNumAllocated(int value)
      Sets the specified value to the mNumAllocated field.