Package org.lwjgl.openvr
Class PathRead
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<PathRead>
org.lwjgl.openvr.PathRead
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class PathRead
extends org.lwjgl.system.Struct<PathRead>
implements org.lwjgl.system.NativeResource
Layout
struct PathRead_t {
PathHandle_t ulPath;
void * pvBuffer;
uint32_t unBufferSize;
PropertyTypeTag_t unTag;
uint32_t unRequiredBufferSize;
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 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
ConstructorsConstructorDescriptionPathRead(ByteBuffer container) Creates aPathReadinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathReadcalloc()Returns a newPathReadinstance allocated withmemCalloc.static PathRead.Buffercalloc(int capacity) Returns a newPathRead.Bufferinstance allocated withmemCalloc.static PathRead.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newPathRead.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static PathReadcalloc(org.lwjgl.system.MemoryStack stack) Returns a newPathReadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static PathReadcreate()Returns a newPathReadinstance allocated withBufferUtils.static PathRead.Buffercreate(int capacity) Returns a newPathRead.Bufferinstance allocated withBufferUtils.static PathReadcreate(long address) Returns a newPathReadinstance for the specified memory address.static PathRead.Buffercreate(long address, int capacity) Create aPathRead.Bufferinstance at the specified memory.static @Nullable PathReadcreateSafe(long address) static @Nullable PathRead.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.static PathReadmalloc()Returns a newPathReadinstance allocated withmemAlloc.static PathRead.Buffermalloc(int capacity) Returns a newPathRead.Bufferinstance allocated withmemAlloc.static PathRead.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newPathRead.Bufferinstance allocated on the specifiedMemoryStack.static PathReadmalloc(org.lwjgl.system.MemoryStack stack) Returns a newPathReadinstance allocated on the specifiedMemoryStack.static intneError(long struct) Unsafe version ofeError().static voidneError(long struct, int value) Unsafe version ofeError.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 intnunRequiredBufferSize(long struct) Unsafe version ofunRequiredBufferSize().static voidnunRequiredBufferSize(long struct, int value) Unsafe version ofunRequiredBufferSize.static intnunTag(long struct) Unsafe version ofunTag().static voidnunTag(long struct, int value) Unsafe version ofunTag.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, ByteBuffer pvBuffer, int unTag, int unRequiredBufferSize, 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.intintunRequiredBufferSize(int value) Sets the specified value to theunRequiredBufferSizefield.intunTag()unTag(int value) Sets the specified value to theunTagfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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. -
UNREQUIREDBUFFERSIZE
public static final int UNREQUIREDBUFFERSIZEThe struct member offsets. -
EERROR
public static final int EERRORThe struct member offsets. -
PSZPATH
public static final int PSZPATHThe struct member offsets.
-
-
Constructor Details
-
PathRead
Creates aPathReadinstance 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<PathRead>
-
ulPath
public long ulPath()- Returns:
- the value of the
ulPathfield.
-
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.
-
unRequiredBufferSize
public int unRequiredBufferSize()- Returns:
- the value of the
unRequiredBufferSizefield.
-
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. -
pvBuffer
Sets the address of the specifiedByteBufferto thepvBufferfield. -
unTag
Sets the specified value to theunTagfield. -
unRequiredBufferSize
Sets the specified value to theunRequiredBufferSizefield. -
eError
Sets the specified value to theeError()field. -
pszPath
Sets the address of the specified encoded string to thepszPathfield. -
set
public PathRead set(long ulPath, ByteBuffer pvBuffer, int unTag, int unRequiredBufferSize, 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 newPathReadinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newPathReadinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newPathReadinstance allocated withBufferUtils. -
create
Returns a newPathReadinstance for the specified memory address. -
createSafe
-
malloc
Returns a newPathRead.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newPathRead.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newPathRead.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aPathRead.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newPathReadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newPathReadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newPathRead.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newPathRead.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(). -
npvBuffer
Unsafe version ofpvBuffer. -
nunBufferSize
public static int nunBufferSize(long struct) Unsafe version ofunBufferSize(). -
nunTag
public static int nunTag(long struct) Unsafe version ofunTag(). -
nunRequiredBufferSize
public static int nunRequiredBufferSize(long struct) Unsafe version ofunRequiredBufferSize(). -
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. -
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. -
nunRequiredBufferSize
public static void nunRequiredBufferSize(long struct, int value) Unsafe version ofunRequiredBufferSize. -
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
-