Class ExrEncoderCreateInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrEncoderCreateInfo {
ExrDataSink sink;
ExrMemoryPool scratch_pool;
uint32_t flags;
}-
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 size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrEncoderCreateInfo(ByteBuffer container) Creates aExrEncoderCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrEncoderCreateInfocalloc()Returns a newExrEncoderCreateInfoinstance allocated withmemCalloc.static ExrEncoderCreateInfo.Buffercalloc(int capacity) Returns a newExrEncoderCreateInfo.Bufferinstance allocated withmemCalloc.static ExrEncoderCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrEncoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrEncoderCreateInfocalloc(MemoryStack stack) Returns a newExrEncoderCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrEncoderCreateInfocreate()Returns a newExrEncoderCreateInfoinstance allocated withBufferUtils.static ExrEncoderCreateInfo.Buffercreate(int capacity) Returns a newExrEncoderCreateInfo.Bufferinstance allocated withBufferUtils.static ExrEncoderCreateInfocreate(long address) Returns a newExrEncoderCreateInfoinstance for the specified memory address.static ExrEncoderCreateInfo.Buffercreate(long address, int capacity) Create aExrEncoderCreateInfo.Bufferinstance at the specified memory.static @Nullable ExrEncoderCreateInfocreateSafe(long address) static @Nullable ExrEncoderCreateInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static ExrEncoderCreateInfomalloc()Returns a newExrEncoderCreateInfoinstance allocated withmemAlloc.static ExrEncoderCreateInfo.Buffermalloc(int capacity) Returns a newExrEncoderCreateInfo.Bufferinstance allocated withmemAlloc.static ExrEncoderCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrEncoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrEncoderCreateInfomalloc(MemoryStack stack) Returns a newExrEncoderCreateInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnscratch_pool(long struct) Unsafe version ofscratch_pool().static voidnscratch_pool(long struct, long value) Unsafe version ofscratch_pool.static ExrDataSinknsink(long struct) Unsafe version ofsink().static voidnsink(long struct, ExrDataSink value) Unsafe version ofsink.longscratch_pool(long value) Sets the specified value to thescratch_poolfield.set(ExrDataSink sink, long scratch_pool, int flags) Initializes this struct with the specified values.set(ExrEncoderCreateInfo src) Copies the specified struct data to this struct.sink()sink(Consumer<ExrDataSink> consumer) Passes thesinkfield to the specifiedConsumer.sink(ExrDataSink value) Copies the specifiedExrDataSinkto thesinkfield.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. -
SINK
public static final int SINKThe struct member offsets. -
SCRATCH_POOL
public static final int SCRATCH_POOLThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
ExrEncoderCreateInfo
Creates aExrEncoderCreateInfoinstance 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<ExrEncoderCreateInfo>
-
sink
- Returns:
- a
ExrDataSinkview of thesinkfield.
-
scratch_pool
- Returns:
- the value of the
scratch_poolfield.
-
flags
- Returns:
- the value of the
flagsfield.
-
sink
Copies the specifiedExrDataSinkto thesinkfield. -
sink
Passes thesinkfield to the specifiedConsumer. -
scratch_pool
Sets the specified value to thescratch_poolfield. -
flags
Sets the specified value to theflagsfield. -
set
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 newExrEncoderCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrEncoderCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrEncoderCreateInfoinstance allocated withBufferUtils. -
create
Returns a newExrEncoderCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrEncoderCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrEncoderCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrEncoderCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrEncoderCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrEncoderCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrEncoderCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrEncoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrEncoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsink
Unsafe version ofsink(). -
nscratch_pool
public static long nscratch_pool(long struct) Unsafe version ofscratch_pool(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nsink
Unsafe version ofsink. -
nscratch_pool
public static void nscratch_pool(long struct, long value) Unsafe version ofscratch_pool. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-