Package org.lwjgl.util.spng
Class spng_plte
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spng_plte {
uint32_t n_entries;
struct spng_plte_entry entries[256];
}-
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 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_plteinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_pltecalloc()Returns a newspng_plteinstance allocated withmemCalloc.static spng_plte.Buffercalloc(int capacity) Returns a newspng_plte.Bufferinstance allocated withmemCalloc.static spng_plte.Buffercalloc(int capacity, MemoryStack stack) Returns a newspng_plte.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_pltecalloc(MemoryStack stack) Returns a newspng_plteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_pltecreate()Returns a newspng_plteinstance allocated withBufferUtils.static spng_plte.Buffercreate(int capacity) Returns a newspng_plte.Bufferinstance allocated withBufferUtils.static spng_pltecreate(long address) Returns a newspng_plteinstance for the specified memory address.static spng_plte.Buffercreate(long address, int capacity) Create aspng_plte.Bufferinstance at the specified memory.static @Nullable spng_pltecreateSafe(long address) static @Nullable spng_plte.BuffercreateSafe(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_entryat the specified index of theentriesfield.entries(Consumer<spng_plte_entry.Buffer> consumer) Passes theentriesfield to the specifiedConsumer.entries(spng_plte_entry.Buffer value) Copies the specifiedspng_plte_entry.Bufferto theentriesfield.static spng_pltemalloc()Returns a newspng_plteinstance allocated withmemAlloc.static spng_plte.Buffermalloc(int capacity) Returns a newspng_plte.Bufferinstance allocated withmemAlloc.static spng_plte.Buffermalloc(int capacity, MemoryStack stack) Returns a newspng_plte.Bufferinstance allocated on the specifiedMemoryStack.static spng_pltemalloc(MemoryStack stack) Returns a newspng_plteinstance allocated on the specifiedMemoryStack.intstatic spng_plte_entry.Buffernentries(long struct) Unsafe version ofentries().static spng_plte_entrynentries(long struct, int index) Unsafe version ofentries.static voidnentries(long struct, int index, spng_plte_entry value) Unsafe version ofentries.static voidnentries(long struct, spng_plte_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.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
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_plteinstance 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). -
n_entries
public int n_entries()- Returns:
- the value of the
n_entriesfield.
-
entries
- Returns:
- a
spng_plte_entry.Buffer view of theentriesfield.
-
entries
- Returns:
- a
spng_plte_entryview of the struct at the specified index of theentriesfield.
-
entries
Copies the specifiedspng_plte_entry.Bufferto theentriesfield. -
entries
Copies the specifiedspng_plte_entryat the specified index of theentriesfield. -
entries
Passes theentriesfield 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_plteinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newspng_plteinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newspng_plteinstance allocated withBufferUtils. -
create
Returns a newspng_plteinstance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_plte.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newspng_plte.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newspng_plte.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aspng_plte.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_plteinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newspng_plteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newspng_plte.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newspng_plte.Bufferinstance allocated on the specifiedMemoryStackand 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_entriesfield of the specifiedstruct. -
nentries
Unsafe version ofentries. -
nentries
Unsafe version ofentries.
-