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