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;
{@link spng_splt_entry struct spng_splt_entry} * entries;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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_splt
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_splt
calloc()
Returns a newspng_splt
instance allocated withmemCalloc
.static spng_splt.Buffer
calloc
(int capacity) Returns a newspng_splt.Buffer
instance allocated withmemCalloc
.static spng_splt.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newspng_splt.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_splt
calloc
(MemoryStack stack) Returns a newspng_splt
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_splt
create()
Returns a newspng_splt
instance allocated withBufferUtils
.static spng_splt.Buffer
create
(int capacity) Returns a newspng_splt.Buffer
instance allocated withBufferUtils
.static spng_splt
create
(long address) Returns a newspng_splt
instance for the specified memory address.static spng_splt.Buffer
create
(long address, int capacity) Create aspng_splt.Buffer
instance at the specified memory.static @Nullable spng_splt
createSafe
(long address) static @Nullable spng_splt.Buffer
createSafe
(long address, int capacity) entries()
entries
(spng_splt_entry.Buffer value) Sets the address of the specifiedspng_splt_entry.Buffer
to theentries
field.static spng_splt
malloc()
Returns a newspng_splt
instance allocated withmemAlloc
.static spng_splt.Buffer
malloc
(int capacity) Returns a newspng_splt.Buffer
instance allocated withmemAlloc
.static spng_splt.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newspng_splt.Buffer
instance allocated on the specifiedMemoryStack
.static spng_splt
malloc
(MemoryStack stack) Returns a newspng_splt
instance allocated on the specifiedMemoryStack
.int
name()
name
(ByteBuffer value) Copies the specified encoded string to thename
field.static spng_splt_entry.Buffer
nentries
(long struct) Unsafe version ofentries()
.static void
nentries
(long struct, spng_splt_entry.Buffer value) Unsafe version ofentries
.static int
nn_entries
(long struct) Unsafe version ofn_entries()
.static void
nn_entries
(long struct, int value) Sets the specified value to then_entries
field of the specifiedstruct
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static byte
nsample_depth
(long struct) Unsafe version ofsample_depth()
.static void
nsample_depth
(long struct, byte value) Unsafe version ofsample_depth
.byte
sample_depth
(byte value) Sets the specified value to thesample_depth
field.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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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_splt
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
. -
name
- Returns:
- a
ByteBuffer
view of thename
field.
-
nameString
- Returns:
- the null-terminated string stored in the
name
field.
-
sample_depth
public byte sample_depth()- Returns:
- the value of the
sample_depth
field.
-
n_entries
public int n_entries()- Returns:
- the value of the
n_entries
field.
-
entries
- Returns:
- a
spng_splt_entry.Buffer
view of the struct array pointed to by theentries
field.
-
name
Copies the specified encoded string to thename
field. -
sample_depth
Sets the specified value to thesample_depth
field. -
entries
Sets the address of the specifiedspng_splt_entry.Buffer
to theentries
field. -
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_splt
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newspng_splt
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newspng_splt
instance allocated withBufferUtils
. -
create
Returns a newspng_splt
instance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_splt.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newspng_splt.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newspng_splt.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aspng_splt.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_splt
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newspng_splt
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newspng_splt.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newspng_splt.Buffer
instance allocated on the specifiedMemoryStack
and 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_entries
field 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
-