Package org.lwjgl.openvr
Class PathWrite
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<PathWrite>
org.lwjgl.openvr.PathWrite
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class PathWrite
extends org.lwjgl.system.Struct<PathWrite>
implements org.lwjgl.system.NativeResource
Layout
struct PathWrite_t {
PathHandle_t ulPath;
EPropertyWriteType writeType();
ETrackedPropertyError eSetError();
void * pvBuffer;
uint32_t unBufferSize;
PropertyTypeTag_t unTag;
ETrackedPropertyError eError();
char * pszPath;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionPathWrite(ByteBuffer container) Creates aPathWriteinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathWritecalloc()Returns a newPathWriteinstance allocated withmemCalloc.static PathWrite.Buffercalloc(int capacity) Returns a newPathWrite.Bufferinstance allocated withmemCalloc.static PathWrite.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newPathWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static PathWritecalloc(org.lwjgl.system.MemoryStack stack) Returns a newPathWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static PathWritecreate()Returns a newPathWriteinstance allocated withBufferUtils.static PathWrite.Buffercreate(int capacity) Returns a newPathWrite.Bufferinstance allocated withBufferUtils.static PathWritecreate(long address) Returns a newPathWriteinstance for the specified memory address.static PathWrite.Buffercreate(long address, int capacity) Create aPathWrite.Bufferinstance at the specified memory.static @Nullable PathWritecreateSafe(long address) static @Nullable PathWrite.BuffercreateSafe(long address, int capacity) inteError()one of:VR.ETrackedPropertyError_TrackedProp_SuccessVR.ETrackedPropertyError_TrackedProp_WrongDataTypeVR.ETrackedPropertyError_TrackedProp_WrongDeviceClassVR.ETrackedPropertyError_TrackedProp_BufferTooSmallVR.ETrackedPropertyError_TrackedProp_UnknownPropertyVR.ETrackedPropertyError_TrackedProp_InvalidDeviceVR.ETrackedPropertyError_TrackedProp_CouldNotContactServerVR.ETrackedPropertyError_TrackedProp_ValueNotProvidedByDeviceVR.ETrackedPropertyError_TrackedProp_StringExceedsMaximumLengthVR.ETrackedPropertyError_TrackedProp_NotYetAvailableVR.ETrackedPropertyError_TrackedProp_PermissionDeniedVR.ETrackedPropertyError_TrackedProp_InvalidOperationVR.ETrackedPropertyError_TrackedProp_CannotWriteToWildcardsVR.ETrackedPropertyError_TrackedProp_IPCReadFailureVR.ETrackedPropertyError_TrackedProp_OutOfMemoryVR.ETrackedPropertyError_TrackedProp_InvalidContainereError(int value) Sets the specified value to theeError()field.intone of:VR.ETrackedPropertyError_TrackedProp_SuccessVR.ETrackedPropertyError_TrackedProp_WrongDataTypeVR.ETrackedPropertyError_TrackedProp_WrongDeviceClassVR.ETrackedPropertyError_TrackedProp_BufferTooSmallVR.ETrackedPropertyError_TrackedProp_UnknownPropertyVR.ETrackedPropertyError_TrackedProp_InvalidDeviceVR.ETrackedPropertyError_TrackedProp_CouldNotContactServerVR.ETrackedPropertyError_TrackedProp_ValueNotProvidedByDeviceVR.ETrackedPropertyError_TrackedProp_StringExceedsMaximumLengthVR.ETrackedPropertyError_TrackedProp_NotYetAvailableVR.ETrackedPropertyError_TrackedProp_PermissionDeniedVR.ETrackedPropertyError_TrackedProp_InvalidOperationVR.ETrackedPropertyError_TrackedProp_CannotWriteToWildcardsVR.ETrackedPropertyError_TrackedProp_IPCReadFailureVR.ETrackedPropertyError_TrackedProp_OutOfMemoryVR.ETrackedPropertyError_TrackedProp_InvalidContainereSetError(int value) Sets the specified value to theeSetError()field.static PathWritemalloc()Returns a newPathWriteinstance allocated withmemAlloc.static PathWrite.Buffermalloc(int capacity) Returns a newPathWrite.Bufferinstance allocated withmemAlloc.static PathWrite.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newPathWrite.Bufferinstance allocated on the specifiedMemoryStack.static PathWritemalloc(org.lwjgl.system.MemoryStack stack) Returns a newPathWriteinstance allocated on the specifiedMemoryStack.static intneError(long struct) Unsafe version ofeError().static voidneError(long struct, int value) Unsafe version ofeError.static intneSetError(long struct) Unsafe version ofeSetError().static voidneSetError(long struct, int value) Unsafe version ofeSetError.static ByteBuffernpszPath(long struct) Unsafe version ofpszPath().static voidnpszPath(long struct, ByteBuffer value) Unsafe version ofpszPath.static StringnpszPathString(long struct) Unsafe version ofpszPathString().static ByteBuffernpvBuffer(long struct) Unsafe version ofpvBuffer.static voidnpvBuffer(long struct, ByteBuffer value) Unsafe version ofpvBuffer.static longnulPath(long struct) Unsafe version ofulPath().static voidnulPath(long struct, long value) Unsafe version ofulPath.static intnunBufferSize(long struct) Unsafe version ofunBufferSize().static voidnunBufferSize(long struct, int value) Sets the specified value to theunBufferSizefield of the specifiedstruct.static intnunTag(long struct) Unsafe version ofunTag().static voidnunTag(long struct, int value) Unsafe version ofunTag.static intnwriteType(long struct) Unsafe version ofwriteType().static voidnwriteType(long struct, int value) Unsafe version ofwriteType.pszPath()pszPath(ByteBuffer value) Sets the address of the specified encoded string to thepszPathfield.pvBuffer()pvBuffer(ByteBuffer value) Sets the address of the specifiedByteBufferto thepvBufferfield.set(long ulPath, int writeType, int eSetError, ByteBuffer pvBuffer, int unTag, int eError, ByteBuffer pszPath) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()longulPath()ulPath(long value) Sets the specified value to theulPathfield.intintunTag()unTag(int value) Sets the specified value to theunTagfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intwriteType(int value) Sets the specified value to thewriteType()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
ULPATH
public static final int ULPATHThe struct member offsets. -
WRITETYPE
public static final int WRITETYPEThe struct member offsets. -
ESETERROR
public static final int ESETERRORThe struct member offsets. -
PVBUFFER
public static final int PVBUFFERThe struct member offsets. -
UNBUFFERSIZE
public static final int UNBUFFERSIZEThe struct member offsets. -
UNTAG
public static final int UNTAGThe struct member offsets. -
EERROR
public static final int EERRORThe struct member offsets. -
PSZPATH
public static final int PSZPATHThe struct member offsets.
-
-
Constructor Details
-
PathWrite
Creates aPathWriteinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<PathWrite>
-
ulPath
public long ulPath()- Returns:
- the value of the
ulPathfield.
-
writeType
public int writeType() -
eSetError
public int eSetError()one of: -
pvBuffer
- Returns:
- a
ByteBufferview of the data pointed to by thepvBufferfield.
-
unBufferSize
public int unBufferSize()- Returns:
- the value of the
unBufferSizefield.
-
unTag
public int unTag()- Returns:
- the value of the
unTagfield.
-
eError
public int eError()one of: -
pszPath
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepszPathfield.
-
pszPathString
- Returns:
- the null-terminated string pointed to by the
pszPathfield.
-
ulPath
Sets the specified value to theulPathfield. -
writeType
Sets the specified value to thewriteType()field. -
eSetError
Sets the specified value to theeSetError()field. -
pvBuffer
Sets the address of the specifiedByteBufferto thepvBufferfield. -
unTag
Sets the specified value to theunTagfield. -
eError
Sets the specified value to theeError()field. -
pszPath
Sets the address of the specified encoded string to thepszPathfield. -
set
public PathWrite set(long ulPath, int writeType, int eSetError, ByteBuffer pvBuffer, int unTag, int eError, ByteBuffer pszPath) 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 newPathWriteinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newPathWriteinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newPathWriteinstance allocated withBufferUtils. -
create
Returns a newPathWriteinstance for the specified memory address. -
createSafe
-
malloc
Returns a newPathWrite.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newPathWrite.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newPathWrite.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aPathWrite.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newPathWriteinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newPathWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newPathWrite.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newPathWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nulPath
public static long nulPath(long struct) Unsafe version ofulPath(). -
nwriteType
public static int nwriteType(long struct) Unsafe version ofwriteType(). -
neSetError
public static int neSetError(long struct) Unsafe version ofeSetError(). -
npvBuffer
Unsafe version ofpvBuffer. -
nunBufferSize
public static int nunBufferSize(long struct) Unsafe version ofunBufferSize(). -
nunTag
public static int nunTag(long struct) Unsafe version ofunTag(). -
neError
public static int neError(long struct) Unsafe version ofeError(). -
npszPath
Unsafe version ofpszPath(). -
npszPathString
Unsafe version ofpszPathString(). -
nulPath
public static void nulPath(long struct, long value) Unsafe version ofulPath. -
nwriteType
public static void nwriteType(long struct, int value) Unsafe version ofwriteType. -
neSetError
public static void neSetError(long struct, int value) Unsafe version ofeSetError. -
npvBuffer
Unsafe version ofpvBuffer. -
nunBufferSize
public static void nunBufferSize(long struct, int value) Sets the specified value to theunBufferSizefield of the specifiedstruct. -
nunTag
public static void nunTag(long struct, int value) Unsafe version ofunTag. -
neError
public static void neError(long struct, int value) Unsafe version ofeError. -
npszPath
Unsafe version ofpszPath. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-