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, NativeResource, Pointer
public class OVRErrorInfo extends Struct
Provides information about the last error.Member documentation
Result
– the result from the last API call that generated an errorovrResult
ErrorString
– 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[512] ErrorString; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OVRErrorInfo.Buffer
An array ofOVRErrorInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRErrorInfo
callocStack(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 ornull
if the address isNULL
.static OVRErrorInfo.Buffer
create(long address, int capacity)
Create aOVRErrorInfo.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
.static OVRErrorInfo
mallocStack(MemoryStack stack)
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
.int
Result()
Returns the value of theResult
field.int
sizeof()
Returns thesizeof(struct)
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRErrorInfo callocStack(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, 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, 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
-
-