Class XrHandMeshIndexBufferMSFT.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrHandMeshIndexBufferMSFT.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 XrHandMeshIndexBufferMSFT.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

    • indexBufferKey

      public int indexBufferKey()
      Returns:
      the value of the indexBufferKey field.
    • indexCapacityInput

      public int indexCapacityInput()
      Returns:
      the value of the indexCapacityInput field.
    • indexCountOutput

      public int indexCountOutput()
      Returns:
      the value of the indexCountOutput field.
    • indices

      public @Nullable IntBuffer indices()
      Returns:
      a IntBuffer view of the data pointed to by the indices field.
    • indexBufferKey

      public XrHandMeshIndexBufferMSFT.Buffer indexBufferKey(int value)
      Sets the specified value to the indexBufferKey field.
    • indexCapacityInput

      public XrHandMeshIndexBufferMSFT.Buffer indexCapacityInput(int value)
      Sets the specified value to the indexCapacityInput field.
    • indexCountOutput

      public XrHandMeshIndexBufferMSFT.Buffer indexCountOutput(int value)
      Sets the specified value to the indexCountOutput field.
    • indices

      public XrHandMeshIndexBufferMSFT.Buffer indices(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the indices field.