Package org.lwjgl.util.lz4
Class LZ4FPreferences.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<LZ4FPreferences,LZ4FPreferences.Buffer>
-
- org.lwjgl.util.lz4.LZ4FPreferences.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<LZ4FPreferences>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- LZ4FPreferences
public static class LZ4FPreferences.Buffer extends org.lwjgl.system.StructBuffer<LZ4FPreferences,LZ4FPreferences.Buffer> implements org.lwjgl.system.NativeResource
An array ofLZ4FPreferencesstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanautoFlush()LZ4FPreferences.BufferautoFlush(boolean value)Sets the specified value to theLZ4FPreferences.autoFlush()field.intcompressionLevel()LZ4FPreferences.BuffercompressionLevel(int value)Sets the specified value to theLZ4FPreferences.compressionLevel()field.booleanfavorDecSpeed()LZ4FPreferences.BufferfavorDecSpeed(boolean value)Sets the specified value to theLZ4FPreferences.favorDecSpeed()field.LZ4FFrameInfoframeInfo()LZ4FPreferences.BufferframeInfo(java.util.function.Consumer<LZ4FFrameInfo> consumer)Passes theframeInfofield to the specifiedConsumer.LZ4FPreferences.BufferframeInfo(LZ4FFrameInfo value)Copies the specifiedLZ4FFrameInfoto theframeInfofield.java.nio.IntBufferreserved()intreserved(int index)LZ4FPreferences.Bufferreserved(int index, int value)Sets the specified value at the specified index of theLZ4FPreferences.reserved()field.LZ4FPreferences.Bufferreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto theLZ4FPreferences.reserved()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newLZ4FPreferences.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 byLZ4FPreferences.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 Detail
-
frameInfo
public LZ4FFrameInfo frameInfo()
- Returns:
- a
LZ4FFrameInfoview of theframeInfofield.
-
compressionLevel
public int compressionLevel()
- Returns:
- the value of the
LZ4FPreferences.compressionLevel()field.
-
autoFlush
public boolean autoFlush()
- Returns:
- the value of the
LZ4FPreferences.autoFlush()field.
-
favorDecSpeed
public boolean favorDecSpeed()
- Returns:
- the value of the
LZ4FPreferences.favorDecSpeed()field.
-
reserved
public java.nio.IntBuffer reserved()
- Returns:
- a
IntBufferview of theLZ4FPreferences.reserved()field.
-
reserved
public int reserved(int index)
- Returns:
- the value at the specified index of the
LZ4FPreferences.reserved()field.
-
frameInfo
public LZ4FPreferences.Buffer frameInfo(LZ4FFrameInfo value)
Copies the specifiedLZ4FFrameInfoto theframeInfofield.
-
frameInfo
public LZ4FPreferences.Buffer frameInfo(java.util.function.Consumer<LZ4FFrameInfo> consumer)
Passes theframeInfofield to the specifiedConsumer.
-
compressionLevel
public LZ4FPreferences.Buffer compressionLevel(int value)
Sets the specified value to theLZ4FPreferences.compressionLevel()field.
-
autoFlush
public LZ4FPreferences.Buffer autoFlush(boolean value)
Sets the specified value to theLZ4FPreferences.autoFlush()field.
-
favorDecSpeed
public LZ4FPreferences.Buffer favorDecSpeed(boolean value)
Sets the specified value to theLZ4FPreferences.favorDecSpeed()field.
-
reserved
public LZ4FPreferences.Buffer reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theLZ4FPreferences.reserved()field.
-
reserved
public LZ4FPreferences.Buffer reserved(int index, int value)
Sets the specified value at the specified index of theLZ4FPreferences.reserved()field.
-
-