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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbytebit_depth(byte value) Sets the specified value to thebit_depthfield.bytecolor_type(byte value) Sets the specified value to thecolor_typefield.bytecompression_method(byte value) Sets the specified value to thecompression_methodfield.bytefilter_method(byte value) Sets the specified value to thefilter_methodfield.intheight()height(int value) Sets the specified value to theheightfield.byteinterlace_method(byte value) Sets the specified value to theinterlace_methodfield.intwidth()width(int value) Sets the specified value to thewidthfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newspng_ihdr.Bufferinstance 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
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
bit_depth
public byte bit_depth()- Returns:
- the value of the
bit_depthfield.
-
color_type
public byte color_type()- Returns:
- the value of the
color_typefield.
-
compression_method
public byte compression_method()- Returns:
- the value of the
compression_methodfield.
-
filter_method
public byte filter_method()- Returns:
- the value of the
filter_methodfield.
-
interlace_method
public byte interlace_method()- Returns:
- the value of the
interlace_methodfield.
-
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
bit_depth
Sets the specified value to thebit_depthfield. -
color_type
Sets the specified value to thecolor_typefield. -
compression_method
Sets the specified value to thecompression_methodfield. -
filter_method
Sets the specified value to thefilter_methodfield. -
interlace_method
Sets the specified value to theinterlace_methodfield.
-