Package org.lwjgl.util.spng
Class spng_splt
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spng_splt {
char name[80];
uint8_t sample_depth;
uint32_t n_entries;
struct spng_splt_entry * entries;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionspng_splt(ByteBuffer container) Creates aspng_spltinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_spltcalloc()Returns a newspng_spltinstance allocated withmemCalloc.static spng_splt.Buffercalloc(int capacity) Returns a newspng_splt.Bufferinstance allocated withmemCalloc.static spng_splt.Buffercalloc(int capacity, MemoryStack stack) Returns a newspng_splt.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_spltcalloc(MemoryStack stack) Returns a newspng_spltinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_spltcreate()Returns a newspng_spltinstance allocated withBufferUtils.static spng_splt.Buffercreate(int capacity) Returns a newspng_splt.Bufferinstance allocated withBufferUtils.static spng_spltcreate(long address) Returns a newspng_spltinstance for the specified memory address.static spng_splt.Buffercreate(long address, int capacity) Create aspng_splt.Bufferinstance at the specified memory.static @Nullable spng_spltcreateSafe(long address) static @Nullable spng_splt.BuffercreateSafe(long address, int capacity) entries()entries(spng_splt_entry.Buffer value) Sets the address of the specifiedspng_splt_entry.Bufferto theentriesfield.static spng_spltmalloc()Returns a newspng_spltinstance allocated withmemAlloc.static spng_splt.Buffermalloc(int capacity) Returns a newspng_splt.Bufferinstance allocated withmemAlloc.static spng_splt.Buffermalloc(int capacity, MemoryStack stack) Returns a newspng_splt.Bufferinstance allocated on the specifiedMemoryStack.static spng_spltmalloc(MemoryStack stack) Returns a newspng_spltinstance allocated on the specifiedMemoryStack.intname()name(ByteBuffer value) Copies the specified encoded string to thenamefield.static spng_splt_entry.Buffernentries(long struct) Unsafe version ofentries().static voidnentries(long struct, spng_splt_entry.Buffer value) Unsafe version ofentries.static intnn_entries(long struct) Unsafe version ofn_entries().static voidnn_entries(long struct, int value) Sets the specified value to then_entriesfield of the specifiedstruct.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static bytensample_depth(long struct) Unsafe version ofsample_depth().static voidnsample_depth(long struct, byte value) Unsafe version ofsample_depth.bytesample_depth(byte value) Sets the specified value to thesample_depthfield.set(ByteBuffer name, byte sample_depth, spng_splt_entry.Buffer entries) Initializes this struct with the specified values.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 org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
SAMPLE_DEPTH
public static final int SAMPLE_DEPTHThe struct member offsets. -
N_ENTRIES
public static final int N_ENTRIESThe struct member offsets. -
ENTRIES
public static final int ENTRIESThe struct member offsets.
-
-
Constructor Details
-
spng_splt
Creates aspng_spltinstance 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). -
name
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
- Returns:
- the null-terminated string stored in the
namefield.
-
sample_depth
public byte sample_depth()- Returns:
- the value of the
sample_depthfield.
-
n_entries
public int n_entries()- Returns:
- the value of the
n_entriesfield.
-
entries
- Returns:
- a
spng_splt_entry.Bufferview of the struct array pointed to by theentriesfield.
-
name
Copies the specified encoded string to thenamefield. -
sample_depth
Sets the specified value to thesample_depthfield. -
entries
Sets the address of the specifiedspng_splt_entry.Bufferto theentriesfield. -
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 newspng_spltinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newspng_spltinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newspng_spltinstance allocated withBufferUtils. -
create
Returns a newspng_spltinstance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_splt.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newspng_splt.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newspng_splt.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aspng_splt.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_spltinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newspng_spltinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newspng_splt.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newspng_splt.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(). -
nsample_depth
public static byte nsample_depth(long struct) Unsafe version ofsample_depth(). -
nn_entries
public static int nn_entries(long struct) Unsafe version ofn_entries(). -
nentries
Unsafe version ofentries(). -
nname
Unsafe version ofname. -
nsample_depth
public static void nsample_depth(long struct, byte value) Unsafe version ofsample_depth. -
nn_entries
public static void nn_entries(long struct, int value) Sets the specified value to then_entriesfield of the specifiedstruct. -
nentries
Unsafe version ofentries. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-