Class ExrContextCreateInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrContextCreateInfo {
uint32_t api_version;
ExrAllocator const * allocator;
ExrErrorCallback error_callback;
void * error_userdata;
uint32_t flags;
uint32_t max_threads;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrContextCreateInfo(ByteBuffer container) Creates aExrContextCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription@Nullable ExrAllocatorallocator(@Nullable ExrAllocator value) Sets the address of the specifiedExrAllocatorto theallocatorfield.intapi_version(int value) Sets the specified value to theapi_versionfield.static ExrContextCreateInfocalloc()Returns a newExrContextCreateInfoinstance allocated withmemCalloc.static ExrContextCreateInfo.Buffercalloc(int capacity) Returns a newExrContextCreateInfo.Bufferinstance allocated withmemCalloc.static ExrContextCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrContextCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrContextCreateInfocalloc(MemoryStack stack) Returns a newExrContextCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrContextCreateInfocreate()Returns a newExrContextCreateInfoinstance allocated withBufferUtils.static ExrContextCreateInfo.Buffercreate(int capacity) Returns a newExrContextCreateInfo.Bufferinstance allocated withBufferUtils.static ExrContextCreateInfocreate(long address) Returns a newExrContextCreateInfoinstance for the specified memory address.static ExrContextCreateInfo.Buffercreate(long address, int capacity) Create aExrContextCreateInfo.Bufferinstance at the specified memory.static @Nullable ExrContextCreateInfocreateSafe(long address) static @Nullable ExrContextCreateInfo.BuffercreateSafe(long address, int capacity) @Nullable ExrErrorCallbackerror_callback(@Nullable ExrErrorCallbackI value) Sets the specified value to theerror_callbackfield.longerror_userdata(long value) Sets the specified value to theerror_userdatafield.intflags()flags(int value) Sets the specified value to theflagsfield.static ExrContextCreateInfomalloc()Returns a newExrContextCreateInfoinstance allocated withmemAlloc.static ExrContextCreateInfo.Buffermalloc(int capacity) Returns a newExrContextCreateInfo.Bufferinstance allocated withmemAlloc.static ExrContextCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrContextCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrContextCreateInfomalloc(MemoryStack stack) Returns a newExrContextCreateInfoinstance allocated on the specifiedMemoryStack.intmax_threads(int value) Sets the specified value to themax_threadsfield.static @Nullable ExrAllocatornallocator(long struct) Unsafe version ofallocator().static voidnallocator(long struct, @Nullable ExrAllocator value) Unsafe version ofallocator.static intnapi_version(long struct) Unsafe version ofapi_version().static voidnapi_version(long struct, int value) Unsafe version ofapi_version.static @Nullable ExrErrorCallbacknerror_callback(long struct) Unsafe version oferror_callback().static voidnerror_callback(long struct, @Nullable ExrErrorCallbackI value) Unsafe version oferror_callback.static longnerror_userdata(long struct) Unsafe version oferror_userdata().static voidnerror_userdata(long struct, long value) Unsafe version oferror_userdata.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmax_threads(long struct) Unsafe version ofmax_threads().static voidnmax_threads(long struct, int value) Unsafe version ofmax_threads.set(int api_version, @Nullable ExrAllocator allocator, @Nullable ExrErrorCallbackI error_callback, long error_userdata, int flags, int max_threads) Initializes this struct with the specified values.set(ExrContextCreateInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
API_VERSION
public static final int API_VERSIONThe struct member offsets. -
ALLOCATOR
public static final int ALLOCATORThe struct member offsets. -
ERROR_CALLBACK
public static final int ERROR_CALLBACKThe struct member offsets. -
ERROR_USERDATA
public static final int ERROR_USERDATAThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MAX_THREADS
public static final int MAX_THREADSThe struct member offsets.
-
-
Constructor Details
-
ExrContextCreateInfo
Creates aExrContextCreateInfoinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ExrContextCreateInfo>
-
api_version
- Returns:
- the value of the
api_versionfield.
-
allocator
- Returns:
- a
ExrAllocatorview of the struct pointed to by theallocatorfield.
-
error_callback
- Returns:
- the value of the
error_callbackfield.
-
error_userdata
- Returns:
- the value of the
error_userdatafield.
-
flags
- Returns:
- the value of the
flagsfield.
-
max_threads
- Returns:
- the value of the
max_threadsfield.
-
api_version
Sets the specified value to theapi_versionfield. -
allocator
public ExrContextCreateInfo allocator(@NativeType("ExrAllocator const *") @Nullable ExrAllocator value) Sets the address of the specifiedExrAllocatorto theallocatorfield. -
error_callback
public ExrContextCreateInfo error_callback(@NativeType("ExrErrorCallback") @Nullable ExrErrorCallbackI value) Sets the specified value to theerror_callbackfield. -
error_userdata
Sets the specified value to theerror_userdatafield. -
flags
Sets the specified value to theflagsfield. -
max_threads
Sets the specified value to themax_threadsfield. -
set
public ExrContextCreateInfo set(int api_version, @Nullable ExrAllocator allocator, @Nullable ExrErrorCallbackI error_callback, long error_userdata, int flags, int max_threads) 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 newExrContextCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrContextCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrContextCreateInfoinstance allocated withBufferUtils. -
create
Returns a newExrContextCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrContextCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrContextCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrContextCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrContextCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrContextCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrContextCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrContextCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrContextCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
napi_version
public static int napi_version(long struct) Unsafe version ofapi_version(). -
nallocator
Unsafe version ofallocator(). -
nerror_callback
Unsafe version oferror_callback(). -
nerror_userdata
public static long nerror_userdata(long struct) Unsafe version oferror_userdata(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nmax_threads
public static int nmax_threads(long struct) Unsafe version ofmax_threads(). -
napi_version
public static void napi_version(long struct, int value) Unsafe version ofapi_version. -
nallocator
Unsafe version ofallocator. -
nerror_callback
Unsafe version oferror_callback. -
nerror_userdata
public static void nerror_userdata(long struct, long value) Unsafe version oferror_userdata. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nmax_threads
public static void nmax_threads(long struct, int value) Unsafe version ofmax_threads. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-