Package org.lwjgl.openxr
Class XrEventDataBuffer.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrEventDataBuffer,XrEventDataBuffer.Buffer>
-
- org.lwjgl.openxr.XrEventDataBuffer.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrEventDataBuffer>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrEventDataBuffer
public static class XrEventDataBuffer.Buffer extends org.lwjgl.system.StructBuffer<XrEventDataBuffer,XrEventDataBuffer.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrEventDataBufferstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longnext()XrEventDataBuffer.Buffernext(long value)Sets the specified value to theXrEventDataBuffer.next()field.inttype()XrEventDataBuffer.Buffertype(int value)Sets the specified value to theXrEventDataBuffer.type()field.XrEventDataBuffer.Buffertype$Default()Sets theTYPE_EVENT_DATA_BUFFERvalue to theXrEventDataBuffer.type()field.java.nio.ByteBuffervarying()bytevarying(int index)XrEventDataBuffer.Buffervarying(int index, byte value)Sets the specified value at the specified index of theXrEventDataBuffer.varying()field.XrEventDataBuffer.Buffervarying(java.nio.ByteBuffer value)Copies the specifiedByteBufferto theXrEventDataBuffer.varying()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrEventDataBuffer.Bufferinstance 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 byXrEventDataBuffer.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 Detail
-
type
public int type()
- Returns:
- the value of the
XrEventDataBuffer.type()field.
-
next
public long next()
- Returns:
- the value of the
XrEventDataBuffer.next()field.
-
varying
public java.nio.ByteBuffer varying()
- Returns:
- a
ByteBufferview of theXrEventDataBuffer.varying()field.
-
varying
public byte varying(int index)
- Returns:
- the value at the specified index of the
XrEventDataBuffer.varying()field.
-
type
public XrEventDataBuffer.Buffer type(int value)
Sets the specified value to theXrEventDataBuffer.type()field.
-
type$Default
public XrEventDataBuffer.Buffer type$Default()
Sets theTYPE_EVENT_DATA_BUFFERvalue to theXrEventDataBuffer.type()field.
-
next
public XrEventDataBuffer.Buffer next(long value)
Sets the specified value to theXrEventDataBuffer.next()field.
-
varying
public XrEventDataBuffer.Buffer varying(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto theXrEventDataBuffer.varying()field.
-
varying
public XrEventDataBuffer.Buffer varying(int index, byte value)
Sets the specified value at the specified index of theXrEventDataBuffer.varying()field.
-
-