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.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_row_info(ByteBuffer container) Creates aspng_row_infoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_row_infocalloc()Returns a newspng_row_infoinstance allocated withmemCalloc.static spng_row_info.Buffercalloc(int capacity) Returns a newspng_row_info.Bufferinstance allocated withmemCalloc.static spng_row_info.Buffercalloc(int capacity, MemoryStack stack) Returns a newspng_row_info.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_row_infocalloc(MemoryStack stack) Returns a newspng_row_infoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_row_infocreate()Returns a newspng_row_infoinstance allocated withBufferUtils.static spng_row_info.Buffercreate(int capacity) Returns a newspng_row_info.Bufferinstance allocated withBufferUtils.static spng_row_infocreate(long address) Returns a newspng_row_infoinstance for the specified memory address.static spng_row_info.Buffercreate(long address, int capacity) Create aspng_row_info.Bufferinstance at the specified memory.static @Nullable spng_row_infocreateSafe(long address) static @Nullable spng_row_info.BuffercreateSafe(long address, int capacity) bytefilter()static spng_row_infomalloc()Returns a newspng_row_infoinstance allocated withmemAlloc.static spng_row_info.Buffermalloc(int capacity) Returns a newspng_row_info.Bufferinstance allocated withmemAlloc.static spng_row_info.Buffermalloc(int capacity, MemoryStack stack) Returns a newspng_row_info.Bufferinstance allocated on the specifiedMemoryStack.static spng_row_infomalloc(MemoryStack stack) Returns a newspng_row_infoinstance allocated on the specifiedMemoryStack.static bytenfilter(long struct) Unsafe version offilter().static intnpass(long struct) Unsafe version ofpass().static intnrow_num(long struct) Unsafe version ofrow_num().static intnscanline_idx(long struct) Unsafe version ofscanline_idx().intpass()introw_num()intintsizeof()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. -
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_infoinstance 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).- Specified by:
sizeofin classStruct<spng_row_info>
-
scanline_idx
public int scanline_idx()- Returns:
- the value of the
scanline_idxfield.
-
row_num
public int row_num()- Returns:
- the value of the
row_numfield.
-
pass
public int pass()- Returns:
- the value of the
passfield.
-
filter
public byte filter()- Returns:
- the value of the
filterfield.
-
malloc
Returns a newspng_row_infoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newspng_row_infoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newspng_row_infoinstance allocated withBufferUtils. -
create
Returns a newspng_row_infoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_row_info.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newspng_row_info.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newspng_row_info.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aspng_row_info.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_row_infoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newspng_row_infoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newspng_row_info.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newspng_row_info.Bufferinstance allocated on the specifiedMemoryStackand 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().
-