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 errorovrResultErrorString– 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 classOVRErrorInfo.BufferAn array ofOVRErrorInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aOVRErrorInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRErrorInfocalloc()Returns a newOVRErrorInfoinstance allocated withmemCalloc.static OVRErrorInfo.Buffercalloc(int capacity)Returns a newOVRErrorInfo.Bufferinstance allocated withmemCalloc.static OVRErrorInfocallocStack()Returns a newOVRErrorInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRErrorInfo.BuffercallocStack(int capacity)Returns a newOVRErrorInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRErrorInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRErrorInfocallocStack(MemoryStack stack)Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRErrorInfocreate()Returns a newOVRErrorInfoinstance allocated withBufferUtils.static OVRErrorInfo.Buffercreate(int capacity)Returns a newOVRErrorInfo.Bufferinstance allocated withBufferUtils.static OVRErrorInfocreate(long address)Returns a newOVRErrorInfoinstance for the specified memory address ornullif the address isNULL.static OVRErrorInfo.Buffercreate(long address, int capacity)Create aOVRErrorInfo.Bufferinstance at the specified memory.java.nio.ByteBufferErrorString()Returns aByteBufferview of theErrorStringfield.java.lang.StringErrorStringString()Decodes the null-terminated string stored in theErrorStringfield.static OVRErrorInfomalloc()Returns a newOVRErrorInfoinstance allocated withmemAlloc.static OVRErrorInfo.Buffermalloc(int capacity)Returns a newOVRErrorInfo.Bufferinstance allocated withmemAlloc.static OVRErrorInfomallocStack()Returns a newOVRErrorInfoinstance allocated on the thread-localMemoryStack.static OVRErrorInfo.BuffermallocStack(int capacity)Returns a newOVRErrorInfo.Bufferinstance allocated on the thread-localMemoryStack.static OVRErrorInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStack.static OVRErrorInfomallocStack(MemoryStack stack)Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.intResult()Returns the value of theResultfield.intsizeof()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 aOVRErrorInfoinstance 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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
Result
public int Result()
Returns the value of theResultfield.
-
ErrorString
public java.nio.ByteBuffer ErrorString()
Returns aByteBufferview of theErrorStringfield.
-
ErrorStringString
public java.lang.String ErrorStringString()
Decodes the null-terminated string stored in theErrorStringfield.
-
malloc
public static OVRErrorInfo malloc()
Returns a newOVRErrorInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRErrorInfo calloc()
Returns a newOVRErrorInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRErrorInfo create()
Returns a newOVRErrorInfoinstance allocated withBufferUtils.
-
create
public static OVRErrorInfo create(long address)
Returns a newOVRErrorInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRErrorInfo.Buffer malloc(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRErrorInfo.Buffer calloc(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRErrorInfo.Buffer create(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRErrorInfo.Buffer create(long address, int capacity)
Create aOVRErrorInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRErrorInfo mallocStack()
Returns a newOVRErrorInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRErrorInfo callocStack()
Returns a newOVRErrorInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRErrorInfo mallocStack(MemoryStack stack)
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRErrorInfo callocStack(MemoryStack stack)
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRErrorInfo.Buffer callocStack(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRErrorInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRErrorInfo.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-