Package org.lwjgl.util.spng
Class spng_plte
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct spng_plte {
uint32_t n_entries;
{@link spng_plte_entry struct spng_plte_entry} entries[256];
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionspng_plte
(ByteBuffer container) Creates aspng_plte
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_plte
calloc()
Returns a newspng_plte
instance allocated withmemCalloc
.static spng_plte.Buffer
calloc
(int capacity) Returns a newspng_plte.Buffer
instance allocated withmemCalloc
.static spng_plte.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newspng_plte.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_plte
calloc
(MemoryStack stack) Returns a newspng_plte
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_plte
create()
Returns a newspng_plte
instance allocated withBufferUtils
.static spng_plte.Buffer
create
(int capacity) Returns a newspng_plte.Buffer
instance allocated withBufferUtils
.static spng_plte
create
(long address) Returns a newspng_plte
instance for the specified memory address.static spng_plte.Buffer
create
(long address, int capacity) Create aspng_plte.Buffer
instance at the specified memory.static @Nullable spng_plte
createSafe
(long address) static @Nullable spng_plte.Buffer
createSafe
(long address, int capacity) entries()
entries
(int index) entries
(int index, Consumer<spng_plte_entry> consumer) entries
(int index, spng_plte_entry value) Copies the specifiedspng_plte_entry
at the specified index of theentries
field.entries
(Consumer<spng_plte_entry.Buffer> consumer) Passes theentries
field to the specifiedConsumer
.entries
(spng_plte_entry.Buffer value) Copies the specifiedspng_plte_entry.Buffer
to theentries
field.static spng_plte
malloc()
Returns a newspng_plte
instance allocated withmemAlloc
.static spng_plte.Buffer
malloc
(int capacity) Returns a newspng_plte.Buffer
instance allocated withmemAlloc
.static spng_plte.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newspng_plte.Buffer
instance allocated on the specifiedMemoryStack
.static spng_plte
malloc
(MemoryStack stack) Returns a newspng_plte
instance allocated on the specifiedMemoryStack
.int
static spng_plte_entry.Buffer
nentries
(long struct) Unsafe version ofentries()
.static spng_plte_entry
nentries
(long struct, int index) Unsafe version ofentries
.static void
nentries
(long struct, int index, spng_plte_entry value) Unsafe version ofentries
.static void
nentries
(long struct, spng_plte_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
.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
N_ENTRIES
public static final int N_ENTRIESThe struct member offsets. -
ENTRIES
public static final int ENTRIESThe struct member offsets.
-
-
Constructor Details
-
spng_plte
Creates aspng_plte
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)
. -
n_entries
public int n_entries()- Returns:
- the value of the
n_entries
field.
-
entries
- Returns:
- a
spng_plte_entry
.Buffer view of theentries
field.
-
entries
- Returns:
- a
spng_plte_entry
view of the struct at the specified index of theentries
field.
-
entries
Copies the specifiedspng_plte_entry.Buffer
to theentries
field. -
entries
Copies the specifiedspng_plte_entry
at the specified index of theentries
field. -
entries
Passes theentries
field to the specifiedConsumer
. -
entries
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newspng_plte
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newspng_plte
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newspng_plte
instance allocated withBufferUtils
. -
create
Returns a newspng_plte
instance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_plte.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newspng_plte.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newspng_plte.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aspng_plte.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_plte
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newspng_plte
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newspng_plte.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newspng_plte.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nn_entries
public static int nn_entries(long struct) Unsafe version ofn_entries()
. -
nentries
Unsafe version ofentries()
. -
nentries
Unsafe version ofentries
. -
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
. -
nentries
Unsafe version ofentries
.
-