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.NativeResourceProvides information about the last error.Member documentation
Result– the result from the last API call that generated an errorovrResultErrorString[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 classOVRErrorInfo.BufferAn array ofOVRErrorInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intERRORSTRING
RESULTThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRErrorInfocallocStack(org.lwjgl.system.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.static OVRErrorInfo.Buffercreate(long address, int capacity)Create aOVRErrorInfo.Bufferinstance at the specified memory.static OVRErrorInfocreateSafe(long address)static OVRErrorInfo.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStack.static OVRErrorInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.static java.nio.ByteBuffernErrorString(long struct)Unsafe version ofErrorString().static java.lang.StringnErrorStringString(long struct)Unsafe version ofErrorStringString().static intnResult(long struct)Unsafe version ofResult().intResult()Returns the value of theResultfield.intsizeof()
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
createSafe
@Nullable public static OVRErrorInfo createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRErrorInfo.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRErrorInfo callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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().
-
-