Package org.lwjgl.openxr
Class XrSpatialAnchorPersistenceInfoMSFT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrSpatialAnchorPersistenceInfoMSFT,XrSpatialAnchorPersistenceInfoMSFT.Buffer>
-
- org.lwjgl.openxr.XrSpatialAnchorPersistenceInfoMSFT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrSpatialAnchorPersistenceInfoMSFT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrSpatialAnchorPersistenceInfoMSFT
public static class XrSpatialAnchorPersistenceInfoMSFT.Buffer extends org.lwjgl.system.StructBuffer<XrSpatialAnchorPersistenceInfoMSFT,XrSpatialAnchorPersistenceInfoMSFT.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrSpatialAnchorPersistenceInfoMSFTstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrSpatialAnchorPersistenceInfoMSFT.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 byXrSpatialAnchorPersistenceInfoMSFT.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
XrSpatialAnchorPersistenceInfoMSFT.type()field.
-
next
public long next()
- Returns:
- the value of the
XrSpatialAnchorPersistenceInfoMSFT.next()field.
-
spatialAnchorPersistenceName
public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName()
- Returns:
- a
XrSpatialAnchorPersistenceNameMSFTview of theXrSpatialAnchorPersistenceInfoMSFT.spatialAnchorPersistenceName()field.
-
spatialAnchor
public long spatialAnchor()
- Returns:
- the value of the
XrSpatialAnchorPersistenceInfoMSFT.spatialAnchor()field.
-
type
public XrSpatialAnchorPersistenceInfoMSFT.Buffer type(int value)
Sets the specified value to theXrSpatialAnchorPersistenceInfoMSFT.type()field.
-
type$Default
public XrSpatialAnchorPersistenceInfoMSFT.Buffer type$Default()
Sets theTYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFTvalue to theXrSpatialAnchorPersistenceInfoMSFT.type()field.
-
next
public XrSpatialAnchorPersistenceInfoMSFT.Buffer next(long value)
Sets the specified value to theXrSpatialAnchorPersistenceInfoMSFT.next()field.
-
spatialAnchorPersistenceName
public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value)
Copies the specifiedXrSpatialAnchorPersistenceNameMSFTto theXrSpatialAnchorPersistenceInfoMSFT.spatialAnchorPersistenceName()field.
-
spatialAnchorPersistenceName
public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer<XrSpatialAnchorPersistenceNameMSFT> consumer)
Passes theXrSpatialAnchorPersistenceInfoMSFT.spatialAnchorPersistenceName()field to the specifiedConsumer.
-
spatialAnchor
public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchor(XrSpatialAnchorMSFT value)
Sets the specified value to theXrSpatialAnchorPersistenceInfoMSFT.spatialAnchor()field.
-
-