Package org.lwjgl.util.spng
Class spng_iccp
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spng_iccp {
char profile_name[80];
size_t profile_len;
char * profile;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionspng_iccp(ByteBuffer container) Creates aspng_iccpinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_iccpcalloc()Returns a newspng_iccpinstance allocated withmemCalloc.static spng_iccp.Buffercalloc(int capacity) Returns a newspng_iccp.Bufferinstance allocated withmemCalloc.static spng_iccp.Buffercalloc(int capacity, MemoryStack stack) Returns a newspng_iccp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_iccpcalloc(MemoryStack stack) Returns a newspng_iccpinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_iccpcreate()Returns a newspng_iccpinstance allocated withBufferUtils.static spng_iccp.Buffercreate(int capacity) Returns a newspng_iccp.Bufferinstance allocated withBufferUtils.static spng_iccpcreate(long address) Returns a newspng_iccpinstance for the specified memory address.static spng_iccp.Buffercreate(long address, int capacity) Create aspng_iccp.Bufferinstance at the specified memory.static @Nullable spng_iccpcreateSafe(long address) static @Nullable spng_iccp.BuffercreateSafe(long address, int capacity) static spng_iccpmalloc()Returns a newspng_iccpinstance allocated withmemAlloc.static spng_iccp.Buffermalloc(int capacity) Returns a newspng_iccp.Bufferinstance allocated withmemAlloc.static spng_iccp.Buffermalloc(int capacity, MemoryStack stack) Returns a newspng_iccp.Bufferinstance allocated on the specifiedMemoryStack.static spng_iccpmalloc(MemoryStack stack) Returns a newspng_iccpinstance allocated on the specifiedMemoryStack.static ByteBuffernprofile(long struct) Unsafe version ofprofile.static voidnprofile(long struct, ByteBuffer value) Unsafe version ofprofile.static longnprofile_len(long struct) Unsafe version ofprofile_len().static voidnprofile_len(long struct, long value) Sets the specified value to theprofile_lenfield of the specifiedstruct.static ByteBuffernprofile_name(long struct) Unsafe version ofprofile_name().static voidnprofile_name(long struct, ByteBuffer value) Unsafe version ofprofile_name.static Stringnprofile_nameString(long struct) Unsafe version ofprofile_nameString().profile()profile(ByteBuffer value) Sets the address of the specifiedByteBufferto theprofilefield.longprofile_name(ByteBuffer value) Copies the specified encoded string to theprofile_namefield.set(ByteBuffer profile_name, ByteBuffer profile) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
PROFILE_NAME
public static final int PROFILE_NAMEThe struct member offsets. -
PROFILE_LEN
public static final int PROFILE_LENThe struct member offsets. -
PROFILE
public static final int PROFILEThe struct member offsets.
-
-
Constructor Details
-
spng_iccp
Creates aspng_iccpinstance 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). -
profile_name
- Returns:
- a
ByteBufferview of theprofile_namefield.
-
profile_nameString
- Returns:
- the null-terminated string stored in the
profile_namefield.
-
profile_len
public long profile_len()- Returns:
- the value of the
profile_lenfield.
-
profile
- Returns:
- a
ByteBufferview of the data pointed to by theprofilefield.
-
profile_name
Copies the specified encoded string to theprofile_namefield. -
profile
Sets the address of the specifiedByteBufferto theprofilefield. -
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_iccpinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newspng_iccpinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newspng_iccpinstance allocated withBufferUtils. -
create
Returns a newspng_iccpinstance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_iccp.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newspng_iccp.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newspng_iccp.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aspng_iccp.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_iccpinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newspng_iccpinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newspng_iccp.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newspng_iccp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nprofile_name
Unsafe version ofprofile_name(). -
nprofile_nameString
Unsafe version ofprofile_nameString(). -
nprofile_len
public static long nprofile_len(long struct) Unsafe version ofprofile_len(). -
nprofile
Unsafe version ofprofile. -
nprofile_name
Unsafe version ofprofile_name. -
nprofile_len
public static void nprofile_len(long struct, long value) Sets the specified value to theprofile_lenfield of the specifiedstruct. -
nprofile
Unsafe version ofprofile. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-