Package org.lwjgl.ovr
Class OVRErrorInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRErrorInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class OVRErrorInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Provides information about the last error.Member documentation
Result
– the result from the last API call that generated an errorovrResult
ErrorString[512]
– a UTF8-encoded null-terminated English string describing the problem. The format of this string is subject to change in future versions
Layout
struct ovrErrorInfo { ovrResult Result; char ErrorString[512]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRErrorInfo.Buffer
An array ofOVRErrorInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ERRORSTRING
RESULTThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRErrorInfo(java.nio.ByteBuffer container)
Creates aOVRErrorInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRErrorInfo
calloc()
Returns a newOVRErrorInfo
instance allocated withmemCalloc
.static OVRErrorInfo.Buffer
calloc(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated withmemCalloc
.static OVRErrorInfo
callocStack()
Returns a newOVRErrorInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRErrorInfo.Buffer
callocStack(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRErrorInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRErrorInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRErrorInfo
create()
Returns a newOVRErrorInfo
instance allocated withBufferUtils
.static OVRErrorInfo.Buffer
create(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated withBufferUtils
.static OVRErrorInfo
create(long address)
Returns a newOVRErrorInfo
instance for the specified memory address.static OVRErrorInfo.Buffer
create(long address, int capacity)
Create aOVRErrorInfo.Buffer
instance at the specified memory.static OVRErrorInfo
createSafe(long address)
static OVRErrorInfo.Buffer
createSafe(long address, int capacity)
java.nio.ByteBuffer
ErrorString()
Returns aByteBuffer
view of theErrorString
field.java.lang.String
ErrorStringString()
Decodes the null-terminated string stored in theErrorString
field.static OVRErrorInfo
malloc()
Returns a newOVRErrorInfo
instance allocated withmemAlloc
.static OVRErrorInfo.Buffer
malloc(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated withmemAlloc
.static OVRErrorInfo
mallocStack()
Returns a newOVRErrorInfo
instance allocated on the thread-localMemoryStack
.static OVRErrorInfo.Buffer
mallocStack(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated on the thread-localMemoryStack
.static OVRErrorInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
.static OVRErrorInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
.static java.nio.ByteBuffer
nErrorString(long struct)
Unsafe version ofErrorString()
.static java.lang.String
nErrorStringString(long struct)
Unsafe version ofErrorStringString()
.static int
nResult(long struct)
Unsafe version ofResult()
.int
Result()
Returns the value of theResult
field.int
sizeof()
-
-
-
Constructor Detail
-
OVRErrorInfo
public OVRErrorInfo(java.nio.ByteBuffer container)
Creates aOVRErrorInfo
instance at the current position of the specifiedByteBuffer
container. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
Result
public int Result()
Returns the value of theResult
field.
-
ErrorString
public java.nio.ByteBuffer ErrorString()
Returns aByteBuffer
view of theErrorString
field.
-
ErrorStringString
public java.lang.String ErrorStringString()
Decodes the null-terminated string stored in theErrorString
field.
-
malloc
public static OVRErrorInfo malloc()
Returns a newOVRErrorInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRErrorInfo calloc()
Returns a newOVRErrorInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRErrorInfo create()
Returns a newOVRErrorInfo
instance allocated withBufferUtils
.
-
create
public static OVRErrorInfo create(long address)
Returns a newOVRErrorInfo
instance for the specified memory address.
-
createSafe
@Nullable public static OVRErrorInfo createSafe(long address)
-
malloc
public static OVRErrorInfo.Buffer malloc(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRErrorInfo.Buffer calloc(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRErrorInfo.Buffer create(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRErrorInfo.Buffer create(long address, int capacity)
Create aOVRErrorInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static OVRErrorInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRErrorInfo mallocStack()
Returns a newOVRErrorInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRErrorInfo callocStack()
Returns a newOVRErrorInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRErrorInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRErrorInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRErrorInfo.Buffer mallocStack(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRErrorInfo.Buffer callocStack(int capacity)
Returns a newOVRErrorInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRErrorInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRErrorInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nResult
public static int nResult(long struct)
Unsafe version ofResult()
.
-
nErrorString
public static java.nio.ByteBuffer nErrorString(long struct)
Unsafe version ofErrorString()
.
-
nErrorStringString
public static java.lang.String nErrorStringString(long struct)
Unsafe version ofErrorStringString()
.
-
-