Class ExrPendingFetch
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrPendingFetch {
uint64_t offset;
uint64_t size;
void * destination;
}-
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
ConstructorsConstructorDescriptionExrPendingFetch(ByteBuffer container) Creates aExrPendingFetchinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrPendingFetchcalloc()Returns a newExrPendingFetchinstance allocated withmemCalloc.static ExrPendingFetch.Buffercalloc(int capacity) Returns a newExrPendingFetch.Bufferinstance allocated withmemCalloc.static ExrPendingFetch.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrPendingFetch.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrPendingFetchcalloc(MemoryStack stack) Returns a newExrPendingFetchinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrPendingFetchcreate()Returns a newExrPendingFetchinstance allocated withBufferUtils.static ExrPendingFetch.Buffercreate(int capacity) Returns a newExrPendingFetch.Bufferinstance allocated withBufferUtils.static ExrPendingFetchcreate(long address) Returns a newExrPendingFetchinstance for the specified memory address.static ExrPendingFetch.Buffercreate(long address, int capacity) Create aExrPendingFetch.Bufferinstance at the specified memory.static @Nullable ExrPendingFetchcreateSafe(long address) static @Nullable ExrPendingFetch.BuffercreateSafe(long address, int capacity) @Nullable ByteBufferdestination(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thedestinationfield.static ExrPendingFetchmalloc()Returns a newExrPendingFetchinstance allocated withmemAlloc.static ExrPendingFetch.Buffermalloc(int capacity) Returns a newExrPendingFetch.Bufferinstance allocated withmemAlloc.static ExrPendingFetch.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrPendingFetch.Bufferinstance allocated on the specifiedMemoryStack.static ExrPendingFetchmalloc(MemoryStack stack) Returns a newExrPendingFetchinstance allocated on the specifiedMemoryStack.static @Nullable ByteBufferndestination(long struct) Unsafe version ofdestination.static voidndestination(long struct, @Nullable ByteBuffer value) Unsafe version ofdestination.static longnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, long value) Unsafe version ofoffset.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Sets the specified value to thesizefield of the specifiedstruct.longoffset()offset(long value) Sets the specified value to theoffsetfield.set(long offset, long size, @Nullable ByteBuffer destination) Initializes this struct with the specified values.set(ExrPendingFetch src) Copies the specified struct data to this struct.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).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. -
OFFSET
public static final int OFFSETThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
DESTINATION
public static final int DESTINATIONThe struct member offsets.
-
-
Constructor Details
-
ExrPendingFetch
Creates aExrPendingFetchinstance 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<ExrPendingFetch>
-
offset
- Returns:
- the value of the
offsetfield.
-
size
- Returns:
- the value of the
sizefield.
-
destination
- Returns:
- a
ByteBufferview of the data pointed to by thedestinationfield.
-
offset
Sets the specified value to theoffsetfield. -
size
Sets the specified value to thesizefield. -
destination
Sets the address of the specifiedByteBufferto thedestinationfield. -
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 newExrPendingFetchinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrPendingFetchinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrPendingFetchinstance allocated withBufferUtils. -
create
Returns a newExrPendingFetchinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrPendingFetch.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrPendingFetch.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrPendingFetch.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrPendingFetch.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrPendingFetchinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrPendingFetchinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrPendingFetch.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrPendingFetch.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noffset
public static long noffset(long struct) Unsafe version ofoffset(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
ndestination
Unsafe version ofdestination. -
noffset
public static void noffset(long struct, long value) Unsafe version ofoffset. -
nsize
public static void nsize(long struct, long value) Sets the specified value to thesizefield of the specifiedstruct. -
ndestination
Unsafe version ofdestination.
-