Package org.lwjgl.util.spng
Class spng_ihdr.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<spng_ihdr>
,NativeResource
,Pointer
- Enclosing class:
spng_ihdr
public static class spng_ihdr.Buffer
extends StructBuffer<spng_ihdr,spng_ihdr.Buffer>
implements NativeResource
An array of
spng_ihdr
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newspng_ihdr.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
bit_depth
(byte value) Sets the specified value to thebit_depth
field.byte
color_type
(byte value) Sets the specified value to thecolor_type
field.byte
compression_method
(byte value) Sets the specified value to thecompression_method
field.byte
filter_method
(byte value) Sets the specified value to thefilter_method
field.int
height()
height
(int value) Sets the specified value to theheight
field.byte
interlace_method
(byte value) Sets the specified value to theinterlace_method
field.int
width()
width
(int value) Sets the specified value to thewidth
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newspng_ihdr.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
spng_ihdr.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
bit_depth
public byte bit_depth()- Returns:
- the value of the
bit_depth
field.
-
color_type
public byte color_type()- Returns:
- the value of the
color_type
field.
-
compression_method
public byte compression_method()- Returns:
- the value of the
compression_method
field.
-
filter_method
public byte filter_method()- Returns:
- the value of the
filter_method
field.
-
interlace_method
public byte interlace_method()- Returns:
- the value of the
interlace_method
field.
-
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
bit_depth
Sets the specified value to thebit_depth
field. -
color_type
Sets the specified value to thecolor_type
field. -
compression_method
Sets the specified value to thecompression_method
field. -
filter_method
Sets the specified value to thefilter_method
field. -
interlace_method
Sets the specified value to theinterlace_method
field.
-