memset(),
setting all parameters to default. All reserved fields must be set to zero.
struct LZ4F_preferences_t {
LZ4F_frameInfo_t frameInfo;
int compressionLevel;
unsigned autoFlush;
unsigned favorDecSpeed;
unsigned reserved[3];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | LZ4FPreferences.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | AUTOFLUSH
The struct member offsets. |
| public static final int | COMPRESSIONLEVEL
The struct member offsets. |
| public static final int | FAVORDECSPEED
The struct member offsets. |
| public static final int | FRAMEINFO
The struct member offsets. |
| public static final int | RESERVED
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | LZ4FPreferences(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public LZ4FPreferences | |
| public static LZ4FPreferences | |
| public static LZ4FPreferences. | calloc(int
the buffer capacity capacity)Returns a new |
| public static LZ4FPreferences | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static LZ4FPreferences. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static LZ4FPreferences | |
| public static LZ4FPreferences | |
| public static LZ4FPreferences. | |
| public static LZ4FPreferences. | |
| public int | compressionLevel()
0: default (fast mode); values > |
| public LZ4FPreferences | |
| protected LZ4FPreferences | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static LZ4FPreferences | |
| public static LZ4FPreferences | |
| public static LZ4FPreferences. | create(int
the buffer capacity capacity)Returns a new |
| public static LZ4FPreferences. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static LZ4FPreferences | |
| public static LZ4FPreferences. | |
| public boolean | |
| public LZ4FPreferences | |
| public LZ4FFrameInfo | |
| public LZ4FPreferences | |
| public LZ4FPreferences | |
| public static LZ4FPreferences | |
| public static LZ4FPreferences. | malloc(int
the buffer capacity capacity)Returns a new |
| public static LZ4FPreferences | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static LZ4FPreferences. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static LZ4FPreferences | |
| public static LZ4FPreferences | |
| public static LZ4FPreferences. | |
| public static LZ4FPreferences. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static LZ4FFrameInfo | |
| public static void | |
| public static IntBuffer | |
| public static int | |
| public static void | |
| public static void | |
| public IntBuffer | |
| public int | |
| public LZ4FPreferences | |
| public LZ4FPreferences | |
| public LZ4FPreferences | set(LZ4FFrameInfo frameInfo, int compressionLevel, boolean autoFlush, boolean favorDecSpeed, IntBuffer reserved)
Initializes this struct with the specified values. |
| public LZ4FPreferences | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| AUTOFLUSH | back to summary |
|---|---|
| public static final int AUTOFLUSH The struct member offsets. | |
| COMPRESSIONLEVEL | back to summary |
|---|---|
| public static final int COMPRESSIONLEVEL The struct member offsets. | |
| FAVORDECSPEED | back to summary |
|---|---|
| public static final int FAVORDECSPEED The struct member offsets. | |
| FRAMEINFO | back to summary |
|---|---|
| public static final int FRAMEINFO The struct member offsets. | |
| RESERVED | back to summary |
|---|---|
| public static final int RESERVED The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| LZ4FPreferences | back to summary |
|---|---|
| protected LZ4FPreferences(long address, ByteBuffer container) | |
| LZ4FPreferences | back to summary |
|---|---|
| public LZ4FPreferences(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| autoFlush | back to summary |
|---|---|
| public boolean autoFlush() 1: always flush, reduces usage of internal buffers
| |
| autoFlush | back to summary |
|---|---|
| public LZ4FPreferences autoFlush(boolean value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static LZ4FPreferences calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static LZ4FPreferences. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static LZ4FPreferences calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static LZ4FPreferences. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static LZ4FPreferences callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static LZ4FPreferences callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static LZ4FPreferences. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static LZ4FPreferences. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| compressionLevel | back to summary |
|---|---|
| public int compressionLevel() 0: default (fast mode); values > | |
| compressionLevel | back to summary |
|---|---|
| public LZ4FPreferences compressionLevel(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected LZ4FPreferences create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static LZ4FPreferences create() Returns a new | |
| create | back to summary |
|---|---|
| public static LZ4FPreferences create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static LZ4FPreferences. Returns a new
| |
| create | back to summary |
|---|---|
| public static LZ4FPreferences. Create a
| |
| createSafe | back to summary |
|---|---|
| public static LZ4FPreferences createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static LZ4FPreferences. Like
| |
| favorDecSpeed | back to summary |
|---|---|
| public boolean favorDecSpeed() 1: parser favors decompression speed vs compression ratio. Only works for high compression modes (≥
| |
| favorDecSpeed | back to summary |
|---|---|
| public LZ4FPreferences favorDecSpeed(boolean value) Sets the specified value to the | |
| frameInfo | back to summary |
|---|---|
public LZ4FFrameInfo frameInfo()
| |
| frameInfo | back to summary |
|---|---|
| public LZ4FPreferences frameInfo(LZ4FFrameInfo value) Copies the specified | |
| frameInfo | back to summary |
|---|---|
| public LZ4FPreferences frameInfo(Consumer<LZ4FFrameInfo> consumer) Passes the | |
| malloc | back to summary |
|---|---|
| public static LZ4FPreferences malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static LZ4FPreferences. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static LZ4FPreferences malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static LZ4FPreferences. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static LZ4FPreferences mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static LZ4FPreferences mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static LZ4FPreferences. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static LZ4FPreferences. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nautoFlush | back to summary |
|---|---|
| public static int nautoFlush(long struct) Unsafe version of | |
| nautoFlush | back to summary |
|---|---|
| public static void nautoFlush(long struct, int value) Unsafe version of | |
| ncompressionLevel | back to summary |
|---|---|
| public static int ncompressionLevel(long struct) Unsafe version of | |
| ncompressionLevel | back to summary |
|---|---|
| public static void ncompressionLevel(long struct, int value) Unsafe version of | |
| nfavorDecSpeed | back to summary |
|---|---|
| public static int nfavorDecSpeed(long struct) Unsafe version of | |
| nfavorDecSpeed | back to summary |
|---|---|
| public static void nfavorDecSpeed(long struct, int value) Unsafe version of | |
| nframeInfo | back to summary |
|---|---|
| public static LZ4FFrameInfo nframeInfo(long struct) Unsafe version of | |
| nframeInfo | back to summary |
|---|---|
| public static void nframeInfo(long struct, LZ4FFrameInfo value) Unsafe version of | |
| nreserved | back to summary |
|---|---|
| public static IntBuffer nreserved(long struct) Unsafe version of | |
| nreserved | back to summary |
|---|---|
| public static int nreserved(long struct, int index) Unsafe version of | |
| nreserved | back to summary |
|---|---|
| public static void nreserved(long struct, IntBuffer value) Unsafe version of | |
| nreserved | back to summary |
|---|---|
| public static void nreserved(long struct, int index, int value) Unsafe version of | |
| reserved | back to summary |
|---|---|
| public IntBuffer reserved() must be zero for forward compatibility
| |
| reserved | back to summary |
|---|---|
| public int reserved(int index) must be zero for forward compatibility
| |
| reserved | back to summary |
|---|---|
| public LZ4FPreferences reserved(IntBuffer value) | |
| reserved | back to summary |
|---|---|
| public LZ4FPreferences reserved(int index, int value) Sets the specified value at the specified index of the | |
| set | back to summary |
|---|---|
| public LZ4FPreferences set(LZ4FFrameInfo frameInfo, int compressionLevel, boolean autoFlush, boolean favorDecSpeed, IntBuffer reserved) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public LZ4FPreferences set(LZ4FPreferences src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
LZ4FPreferences structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final LZ4FPreferences |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public LZ4FPreferences. | |
| public int | |
| public LZ4FPreferences. | |
| public boolean | |
| public LZ4FPreferences. | |
| public LZ4FFrameInfo | |
| public LZ4FPreferences. | |
| public LZ4FPreferences. | |
| protected LZ4FPreferences | |
| public IntBuffer | |
| public int | |
| public LZ4FPreferences. | |
| public LZ4FPreferences. | reserved(int index, int value)
Sets the specified value at the specified index of the |
| protected LZ4FPreferences. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final LZ4FPreferences ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| autoFlush | back to summary |
|---|---|
public boolean autoFlush()
| |
| autoFlush | back to summary |
|---|---|
| public LZ4FPreferences. Sets the specified value to the | |
| compressionLevel | back to summary |
|---|---|
public int compressionLevel()
| |
| compressionLevel | back to summary |
|---|---|
| public LZ4FPreferences. Sets the specified value to the | |
| favorDecSpeed | back to summary |
|---|---|
public boolean favorDecSpeed()
| |
| favorDecSpeed | back to summary |
|---|---|
| public LZ4FPreferences. Sets the specified value to the | |
| frameInfo | back to summary |
|---|---|
public LZ4FFrameInfo frameInfo()
| |
| frameInfo | back to summary |
|---|---|
| public LZ4FPreferences. Copies the specified | |
| frameInfo | back to summary |
|---|---|
| public LZ4FPreferences. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected LZ4FPreferences getElementFactory() Implements abstract org.
| |
| reserved | back to summary |
|---|---|
public IntBuffer reserved()
| |
| reserved | back to summary |
|---|---|
public int reserved(int index)
| |
| reserved | back to summary |
|---|---|
| public LZ4FPreferences. Copies the specified | |
| reserved | back to summary |
|---|---|
| public LZ4FPreferences. Sets the specified value at the specified index of the | |
| self | back to summary |
|---|---|
| protected LZ4FPreferences. Implements abstract org.
| |