Package org.lwjgl.util.spng
Class spng_row_info
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct spng_row_info {
uint32_t scanline_idx;
uint32_t row_num;
int pass;
uint8_t filter;
}
-
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_row_info
(ByteBuffer container) Creates aspng_row_info
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_row_info
calloc()
Returns a newspng_row_info
instance allocated withmemCalloc
.static spng_row_info.Buffer
calloc
(int capacity) Returns a newspng_row_info.Buffer
instance allocated withmemCalloc
.static spng_row_info.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newspng_row_info.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_row_info
calloc
(MemoryStack stack) Returns a newspng_row_info
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_row_info
create()
Returns a newspng_row_info
instance allocated withBufferUtils
.static spng_row_info.Buffer
create
(int capacity) Returns a newspng_row_info.Buffer
instance allocated withBufferUtils
.static spng_row_info
create
(long address) Returns a newspng_row_info
instance for the specified memory address.static spng_row_info.Buffer
create
(long address, int capacity) Create aspng_row_info.Buffer
instance at the specified memory.static @Nullable spng_row_info
createSafe
(long address) static @Nullable spng_row_info.Buffer
createSafe
(long address, int capacity) byte
filter()
static spng_row_info
malloc()
Returns a newspng_row_info
instance allocated withmemAlloc
.static spng_row_info.Buffer
malloc
(int capacity) Returns a newspng_row_info.Buffer
instance allocated withmemAlloc
.static spng_row_info.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newspng_row_info.Buffer
instance allocated on the specifiedMemoryStack
.static spng_row_info
malloc
(MemoryStack stack) Returns a newspng_row_info
instance allocated on the specifiedMemoryStack
.static byte
nfilter
(long struct) Unsafe version offilter()
.static int
npass
(long struct) Unsafe version ofpass()
.static int
nrow_num
(long struct) Unsafe version ofrow_num()
.static int
nscanline_idx
(long struct) Unsafe version ofscanline_idx()
.int
pass()
int
row_num()
int
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. -
SCANLINE_IDX
public static final int SCANLINE_IDXThe struct member offsets. -
ROW_NUM
public static final int ROW_NUMThe struct member offsets. -
PASS
public static final int PASSThe struct member offsets. -
FILTER
public static final int FILTERThe struct member offsets.
-
-
Constructor Details
-
spng_row_info
Creates aspng_row_info
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)
.- Specified by:
sizeof
in classStruct<spng_row_info>
-
scanline_idx
public int scanline_idx()- Returns:
- the value of the
scanline_idx
field.
-
row_num
public int row_num()- Returns:
- the value of the
row_num
field.
-
pass
public int pass()- Returns:
- the value of the
pass
field.
-
filter
public byte filter()- Returns:
- the value of the
filter
field.
-
malloc
Returns a newspng_row_info
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newspng_row_info
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newspng_row_info
instance allocated withBufferUtils
. -
create
Returns a newspng_row_info
instance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_row_info.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newspng_row_info.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newspng_row_info.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aspng_row_info.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_row_info
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newspng_row_info
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newspng_row_info.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newspng_row_info.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nscanline_idx
public static int nscanline_idx(long struct) Unsafe version ofscanline_idx()
. -
nrow_num
public static int nrow_num(long struct) Unsafe version ofrow_num()
. -
npass
public static int npass(long struct) Unsafe version ofpass()
. -
nfilter
public static byte nfilter(long struct) Unsafe version offilter()
.
-