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 ofLZ4FPreferences
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
autoFlush()
Returns the value of theautoFlush
field.LZ4FPreferences.Buffer
autoFlush(boolean value)
Sets the specified value to theautoFlush
field.int
compressionLevel()
Returns the value of thecompressionLevel
field.LZ4FPreferences.Buffer
compressionLevel(int value)
Sets the specified value to thecompressionLevel
field.boolean
favorDecSpeed()
Returns the value of thefavorDecSpeed
field.LZ4FPreferences.Buffer
favorDecSpeed(boolean value)
Sets the specified value to thefavorDecSpeed
field.LZ4FFrameInfo
frameInfo()
Returns aLZ4FFrameInfo
view of theframeInfo
field.LZ4FPreferences.Buffer
frameInfo(java.util.function.Consumer<LZ4FFrameInfo> consumer)
Passes theframeInfo
field to the specifiedConsumer
.LZ4FPreferences.Buffer
frameInfo(LZ4FFrameInfo value)
Copies the specifiedLZ4FFrameInfo
to theframeInfo
field.java.nio.IntBuffer
reserved()
Returns aIntBuffer
view of thereserved
field.int
reserved(int index)
Returns the value at the specified index of thereserved
field.LZ4FPreferences.Buffer
reserved(int index, int value)
Sets the specified value at the specified index of thereserved
field.LZ4FPreferences.Buffer
reserved(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to thereserved
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newLZ4FPreferences.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 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 aLZ4FFrameInfo
view of theframeInfo
field.
-
compressionLevel
public int compressionLevel()
Returns the value of thecompressionLevel
field.
-
autoFlush
public boolean autoFlush()
Returns the value of theautoFlush
field.
-
favorDecSpeed
public boolean favorDecSpeed()
Returns the value of thefavorDecSpeed
field.
-
reserved
public java.nio.IntBuffer reserved()
Returns aIntBuffer
view of thereserved
field.
-
reserved
public int reserved(int index)
Returns the value at the specified index of thereserved
field.
-
frameInfo
public LZ4FPreferences.Buffer frameInfo(LZ4FFrameInfo value)
Copies the specifiedLZ4FFrameInfo
to theframeInfo
field.
-
frameInfo
public LZ4FPreferences.Buffer frameInfo(java.util.function.Consumer<LZ4FFrameInfo> consumer)
Passes theframeInfo
field to the specifiedConsumer
.
-
compressionLevel
public LZ4FPreferences.Buffer compressionLevel(int value)
Sets the specified value to thecompressionLevel
field.
-
autoFlush
public LZ4FPreferences.Buffer autoFlush(boolean value)
Sets the specified value to theautoFlush
field.
-
favorDecSpeed
public LZ4FPreferences.Buffer favorDecSpeed(boolean value)
Sets the specified value to thefavorDecSpeed
field.
-
reserved
public LZ4FPreferences.Buffer reserved(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to thereserved
field.
-
reserved
public LZ4FPreferences.Buffer reserved(int index, int value)
Sets the specified value at the specified index of thereserved
field.
-
-