Class XrTrackableQrCodeANDROID
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrTrackableQrCodeANDROID
extends Struct<XrTrackableQrCodeANDROID>
implements NativeResource
struct XrTrackableQrCodeANDROID {
XrStructureType type;
void * next;
XrTrackingStateANDROID trackingState;
XrTime lastUpdatedTime;
XrPosef centerPose;
XrExtent2Df extents;
uint32_t bufferCapacityInput;
uint32_t bufferCountOutput;
char * buffer;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrTrackableQrCodeANDROID(ByteBuffer container) Creates aXrTrackableQrCodeANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription@Nullable ByteBufferbuffer()buffer(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thebufferfield.intbufferCapacityInput(int value) Sets the specified value to thebufferCapacityInputfield.intbufferCountOutput(int value) Sets the specified value to thebufferCountOutputfield.static XrTrackableQrCodeANDROIDcalloc()Returns a newXrTrackableQrCodeANDROIDinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrTrackableQrCodeANDROIDcalloc(MemoryStack stack) Returns a newXrTrackableQrCodeANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.centerPose(Consumer<XrPosef> consumer) Passes thecenterPosefield to the specifiedConsumer.centerPose(XrPosef value) Copies the specifiedXrPosefto thecenterPosefield.static XrTrackableQrCodeANDROIDcreate()Returns a newXrTrackableQrCodeANDROIDinstance allocated withBufferUtils.create(int capacity) Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated withBufferUtils.static XrTrackableQrCodeANDROIDcreate(long address) Returns a newXrTrackableQrCodeANDROIDinstance for the specified memory address.create(long address, int capacity) Create aXrTrackableQrCodeANDROID.Bufferinstance at the specified memory.static @Nullable XrTrackableQrCodeANDROIDcreateSafe(long address) static @Nullable XrTrackableQrCodeANDROID.BuffercreateSafe(long address, int capacity) extents()extents(Consumer<XrExtent2Df> consumer) Passes theextentsfield to the specifiedConsumer.extents(XrExtent2Df value) Copies the specifiedXrExtent2Dfto theextentsfield.longlastUpdatedTime(long value) Sets the specified value to thelastUpdatedTimefield.static XrTrackableQrCodeANDROIDmalloc()Returns a newXrTrackableQrCodeANDROIDinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrTrackableQrCodeANDROIDmalloc(MemoryStack stack) Returns a newXrTrackableQrCodeANDROIDinstance allocated on the specifiedMemoryStack.static @Nullable ByteBuffernbuffer(long struct) Unsafe version ofbuffer.static voidnbuffer(long struct, @Nullable ByteBuffer value) Unsafe version ofbuffer.static intnbufferCapacityInput(long struct) Unsafe version ofbufferCapacityInput().static voidnbufferCapacityInput(long struct, int value) Sets the specified value to thebufferCapacityInputfield of the specifiedstruct.static intnbufferCountOutput(long struct) Unsafe version ofbufferCountOutput().static voidnbufferCountOutput(long struct, int value) Unsafe version ofbufferCountOutput.static XrPosefncenterPose(long struct) Unsafe version ofcenterPose().static voidncenterPose(long struct, XrPosef value) Unsafe version ofcenterPose.longnext()next(long value) Sets the specified value to thenextfield.static XrExtent2Dfnextents(long struct) Unsafe version ofextents().static voidnextents(long struct, XrExtent2Df value) Unsafe version ofextents.static longnlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime().static voidnlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intntrackingState(long struct) Unsafe version oftrackingState().static voidntrackingState(long struct, int value) Unsafe version oftrackingState.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.set(int type, long next, int trackingState, long lastUpdatedTime, XrPosef centerPose, XrExtent2Df extents, int bufferCapacityInput, int bufferCountOutput, @Nullable ByteBuffer buffer) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttrackingState(int value) Sets the specified value to thetrackingStatefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_TRACKABLE_QR_CODE_ANDROIDvalue to thetypefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
TRACKINGSTATE
public static final int TRACKINGSTATEThe struct member offsets. -
LASTUPDATEDTIME
public static final int LASTUPDATEDTIMEThe struct member offsets. -
CENTERPOSE
public static final int CENTERPOSEThe struct member offsets. -
EXTENTS
public static final int EXTENTSThe struct member offsets. -
BUFFERCAPACITYINPUT
public static final int BUFFERCAPACITYINPUTThe struct member offsets. -
BUFFERCOUNTOUTPUT
public static final int BUFFERCOUNTOUTPUTThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets.
-
-
Constructor Details
-
XrTrackableQrCodeANDROID
Creates aXrTrackableQrCodeANDROIDinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrTrackableQrCodeANDROID>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
trackingState
- Returns:
- the value of the
trackingStatefield.
-
lastUpdatedTime
- Returns:
- the value of the
lastUpdatedTimefield.
-
centerPose
-
extents
- Returns:
- a
XrExtent2Dfview of theextentsfield.
-
bufferCapacityInput
- Returns:
- the value of the
bufferCapacityInputfield.
-
bufferCountOutput
- Returns:
- the value of the
bufferCountOutputfield.
-
buffer
- Returns:
- a
ByteBufferview of the data pointed to by thebufferfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_TRACKABLE_QR_CODE_ANDROIDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
trackingState
Sets the specified value to thetrackingStatefield. -
lastUpdatedTime
Sets the specified value to thelastUpdatedTimefield. -
centerPose
Copies the specifiedXrPosefto thecenterPosefield. -
centerPose
Passes thecenterPosefield to the specifiedConsumer. -
extents
Copies the specifiedXrExtent2Dfto theextentsfield. -
extents
Passes theextentsfield to the specifiedConsumer. -
bufferCapacityInput
Sets the specified value to thebufferCapacityInputfield. -
bufferCountOutput
Sets the specified value to thebufferCountOutputfield. -
buffer
Sets the address of the specifiedByteBufferto thebufferfield. -
set
public XrTrackableQrCodeANDROID set(int type, long next, int trackingState, long lastUpdatedTime, XrPosef centerPose, XrExtent2Df extents, int bufferCapacityInput, int bufferCountOutput, @Nullable ByteBuffer buffer) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrTrackableQrCodeANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrTrackableQrCodeANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrTrackableQrCodeANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrTrackableQrCodeANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrTrackableQrCodeANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrTrackableQrCodeANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrTrackableQrCodeANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrTrackableQrCodeANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
ntrackingState
public static int ntrackingState(long struct) Unsafe version oftrackingState(). -
nlastUpdatedTime
public static long nlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime(). -
ncenterPose
Unsafe version ofcenterPose(). -
nextents
Unsafe version ofextents(). -
nbufferCapacityInput
public static int nbufferCapacityInput(long struct) Unsafe version ofbufferCapacityInput(). -
nbufferCountOutput
public static int nbufferCountOutput(long struct) Unsafe version ofbufferCountOutput(). -
nbuffer
Unsafe version ofbuffer. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ntrackingState
public static void ntrackingState(long struct, int value) Unsafe version oftrackingState. -
nlastUpdatedTime
public static void nlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime. -
ncenterPose
Unsafe version ofcenterPose. -
nextents
Unsafe version ofextents. -
nbufferCapacityInput
public static void nbufferCapacityInput(long struct, int value) Sets the specified value to thebufferCapacityInputfield of the specifiedstruct. -
nbufferCountOutput
public static void nbufferCountOutput(long struct, int value) Unsafe version ofbufferCountOutput. -
nbuffer
Unsafe version ofbuffer.
-