public static class LZ4FPreferences.Buffer extends org.lwjgl.system.StructBuffer<LZ4FPreferences,LZ4FPreferences.Buffer> implements org.lwjgl.system.NativeResource
LZ4FPreferences structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
LZ4FPreferences.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autoFlush()
Returns the value of the
autoFlush field. |
LZ4FPreferences.Buffer |
autoFlush(boolean value)
Sets the specified value to the
autoFlush field. |
int |
compressionLevel()
Returns the value of the
compressionLevel field. |
LZ4FPreferences.Buffer |
compressionLevel(int value)
Sets the specified value to the
compressionLevel field. |
boolean |
favorDecSpeed()
Returns the value of the
favorDecSpeed field. |
LZ4FPreferences.Buffer |
favorDecSpeed(boolean value)
Sets the specified value to the
favorDecSpeed field. |
LZ4FFrameInfo |
frameInfo()
Returns a
LZ4FFrameInfo view of the frameInfo field. |
LZ4FPreferences.Buffer |
frameInfo(java.util.function.Consumer<LZ4FFrameInfo> consumer)
Passes the
frameInfo field to the specified Consumer. |
LZ4FPreferences.Buffer |
frameInfo(LZ4FFrameInfo value)
Copies the specified
LZ4FFrameInfo to the frameInfo field. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
LZ4FPreferences.Buffer |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
LZ4FPreferences.Buffer |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
LZ4FPreferences.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 LZ4FPreferences.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public LZ4FFrameInfo frameInfo()
LZ4FFrameInfo view of the frameInfo field.public int compressionLevel()
compressionLevel field.public boolean autoFlush()
autoFlush field.public boolean favorDecSpeed()
favorDecSpeed field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public LZ4FPreferences.Buffer frameInfo(LZ4FFrameInfo value)
LZ4FFrameInfo to the frameInfo field.public LZ4FPreferences.Buffer frameInfo(java.util.function.Consumer<LZ4FFrameInfo> consumer)
frameInfo field to the specified Consumer.public LZ4FPreferences.Buffer compressionLevel(int value)
compressionLevel field.public LZ4FPreferences.Buffer autoFlush(boolean value)
autoFlush field.public LZ4FPreferences.Buffer favorDecSpeed(boolean value)
favorDecSpeed field.public LZ4FPreferences.Buffer reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public LZ4FPreferences.Buffer reserved(int index, int value)
reserved field.Copyright LWJGL. All Rights Reserved. License terms.