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.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 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_iccp
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic spng_iccp
calloc()
Returns a newspng_iccp
instance allocated withmemCalloc
.static spng_iccp.Buffer
calloc
(int capacity) Returns a newspng_iccp.Buffer
instance allocated withmemCalloc
.static spng_iccp.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newspng_iccp.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_iccp
calloc
(MemoryStack stack) Returns a newspng_iccp
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_iccp
create()
Returns a newspng_iccp
instance allocated withBufferUtils
.static spng_iccp.Buffer
create
(int capacity) Returns a newspng_iccp.Buffer
instance allocated withBufferUtils
.static spng_iccp
create
(long address) Returns a newspng_iccp
instance for the specified memory address.static spng_iccp.Buffer
create
(long address, int capacity) Create aspng_iccp.Buffer
instance at the specified memory.static @Nullable spng_iccp
createSafe
(long address) static @Nullable spng_iccp.Buffer
createSafe
(long address, int capacity) static spng_iccp
malloc()
Returns a newspng_iccp
instance allocated withmemAlloc
.static spng_iccp.Buffer
malloc
(int capacity) Returns a newspng_iccp.Buffer
instance allocated withmemAlloc
.static spng_iccp.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newspng_iccp.Buffer
instance allocated on the specifiedMemoryStack
.static spng_iccp
malloc
(MemoryStack stack) Returns a newspng_iccp
instance allocated on the specifiedMemoryStack
.static ByteBuffer
nprofile
(long struct) Unsafe version ofprofile
.static void
nprofile
(long struct, ByteBuffer value) Unsafe version ofprofile
.static long
nprofile_len
(long struct) Unsafe version ofprofile_len()
.static void
nprofile_len
(long struct, long value) Sets the specified value to theprofile_len
field of the specifiedstruct
.static ByteBuffer
nprofile_name
(long struct) Unsafe version ofprofile_name()
.static void
nprofile_name
(long struct, ByteBuffer value) Unsafe version ofprofile_name
.static String
nprofile_nameString
(long struct) Unsafe version ofprofile_nameString()
.profile()
profile
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to theprofile
field.long
profile_name
(ByteBuffer value) Copies the specified encoded string to theprofile_name
field.set
(ByteBuffer profile_name, ByteBuffer profile) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
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_iccp
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)
. -
profile_name
- Returns:
- a
ByteBuffer
view of theprofile_name
field.
-
profile_nameString
- Returns:
- the null-terminated string stored in the
profile_name
field.
-
profile_len
public long profile_len()- Returns:
- the value of the
profile_len
field.
-
profile
- Returns:
- a
ByteBuffer
view of the data pointed to by theprofile
field.
-
profile_name
Copies the specified encoded string to theprofile_name
field. -
profile
Sets the address of the specifiedByteBuffer
to theprofile
field. -
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_iccp
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newspng_iccp
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newspng_iccp
instance allocated withBufferUtils
. -
create
Returns a newspng_iccp
instance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_iccp.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newspng_iccp.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newspng_iccp.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aspng_iccp.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_iccp
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newspng_iccp
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newspng_iccp.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newspng_iccp.Buffer
instance allocated on the specifiedMemoryStack
and 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_len
field 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
-