Class ExrPartInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrPartInfo {
char const * name;
char const * type_string;
uint32_t part_type;
int32_t width;
int32_t height;
uint32_t num_channels;
uint32_t compression;
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrPartInfo(ByteBuffer container) Creates aExrPartInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrPartInfocalloc()Returns a newExrPartInfoinstance allocated withmemCalloc.static ExrPartInfo.Buffercalloc(int capacity) Returns a newExrPartInfo.Bufferinstance allocated withmemCalloc.static ExrPartInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrPartInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrPartInfocalloc(MemoryStack stack) Returns a newExrPartInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompression(int value) Sets the specified value to thecompressionfield.static ExrPartInfocreate()Returns a newExrPartInfoinstance allocated withBufferUtils.static ExrPartInfo.Buffercreate(int capacity) Returns a newExrPartInfo.Bufferinstance allocated withBufferUtils.static ExrPartInfocreate(long address) Returns a newExrPartInfoinstance for the specified memory address.static ExrPartInfo.Buffercreate(long address, int capacity) Create aExrPartInfo.Bufferinstance at the specified memory.static @Nullable ExrPartInfocreateSafe(long address) static @Nullable ExrPartInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intheight()height(int value) Sets the specified value to theheightfield.static ExrPartInfomalloc()Returns a newExrPartInfoinstance allocated withmemAlloc.static ExrPartInfo.Buffermalloc(int capacity) Returns a newExrPartInfo.Bufferinstance allocated withmemAlloc.static ExrPartInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrPartInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrPartInfomalloc(MemoryStack stack) Returns a newExrPartInfoinstance allocated on the specifiedMemoryStack.@Nullable ByteBuffername()name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thenamefield.@Nullable Stringstatic intncompression(long struct) Unsafe version ofcompression().static voidncompression(long struct, int value) Unsafe version ofcompression.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static @Nullable ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, @Nullable ByteBuffer value) Unsafe version ofname.static @Nullable StringnnameString(long struct) Unsafe version ofnameString().static intnnum_channels(long struct) Unsafe version ofnum_channels().static voidnnum_channels(long struct, int value) Unsafe version ofnum_channels.static intnpart_type(long struct) Unsafe version ofpart_type().static voidnpart_type(long struct, int value) Unsafe version ofpart_type.static ByteBufferntype_string(long struct) Unsafe version oftype_string().static voidntype_string(long struct, ByteBuffer value) Unsafe version oftype_string.static Stringntype_stringString(long struct) Unsafe version oftype_stringString().intnum_channels(int value) Sets the specified value to thenum_channelsfield.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.intpart_type(int value) Sets the specified value to thepart_typefield.set(@Nullable ByteBuffer name, ByteBuffer type_string, int part_type, int width, int height, int num_channels, int compression, int flags) Initializes this struct with the specified values.set(ExrPartInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).type_string(ByteBuffer value) Sets the address of the specified encoded string to thetype_stringfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intwidth()width(int value) Sets the specified value to thewidthfield.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. -
NAME
public static final int NAMEThe struct member offsets. -
TYPE_STRING
public static final int TYPE_STRINGThe struct member offsets. -
PART_TYPE
public static final int PART_TYPEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
NUM_CHANNELS
public static final int NUM_CHANNELSThe struct member offsets. -
COMPRESSION
public static final int COMPRESSIONThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
ExrPartInfo
Creates aExrPartInfoinstance 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<ExrPartInfo>
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
type_string
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thetype_stringfield.
-
type_stringString
- Returns:
- the null-terminated string pointed to by the
type_stringfield.
-
part_type
- Returns:
- the value of the
part_typefield.
-
width
- Returns:
- the value of the
widthfield.
-
height
- Returns:
- the value of the
heightfield.
-
num_channels
- Returns:
- the value of the
num_channelsfield.
-
compression
- Returns:
- the value of the
compressionfield.
-
flags
- Returns:
- the value of the
flagsfield.
-
name
Sets the address of the specified encoded string to thenamefield. -
type_string
Sets the address of the specified encoded string to thetype_stringfield. -
part_type
Sets the specified value to thepart_typefield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
num_channels
Sets the specified value to thenum_channelsfield. -
compression
Sets the specified value to thecompressionfield. -
flags
Sets the specified value to theflagsfield. -
set
public ExrPartInfo set(@Nullable ByteBuffer name, ByteBuffer type_string, int part_type, int width, int height, int num_channels, int compression, int flags) 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 newExrPartInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrPartInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrPartInfoinstance allocated withBufferUtils. -
create
Returns a newExrPartInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrPartInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrPartInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrPartInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrPartInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrPartInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrPartInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrPartInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrPartInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nname
Unsafe version ofname(). -
nnameString
Unsafe version ofnameString(). -
ntype_string
Unsafe version oftype_string(). -
ntype_stringString
Unsafe version oftype_stringString(). -
npart_type
public static int npart_type(long struct) Unsafe version ofpart_type(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
nnum_channels
public static int nnum_channels(long struct) Unsafe version ofnum_channels(). -
ncompression
public static int ncompression(long struct) Unsafe version ofcompression(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nname
Unsafe version ofname. -
ntype_string
Unsafe version oftype_string. -
npart_type
public static void npart_type(long struct, int value) Unsafe version ofpart_type. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight. -
nnum_channels
public static void nnum_channels(long struct, int value) Unsafe version ofnum_channels. -
ncompression
public static void ncompression(long struct, int value) Unsafe version ofcompression. -
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
-