public class LZ4FFrameInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Structure must be first init to 0, using memset(), setting all parameters to default. It's then possible to update selectively some parameter.
blockSizeID – 0 == default. One of:max64KB | max256KB | max1MB | max4MB |
blockMode – 0 == default. One of:blockLinked | blockIndependent | blockChecksumEnabled |
contentChecksumFlag – 1: frame terminated with 32-bit checksum of decompressed data; 0: disabled (default)frameType – read-only field. One of:frame | skippableFrame |
contentSize – size of uncompressed content ; 0 == unknowndictID – dictionary ID, sent by compressor to help decoder select correct dictionary; 0 == no dictID providedblockChecksumFlag – 1: each block followed by a checksum of block's compressed data; 0: disabled (default)
struct LZ4F_frameInfo_t {
LZ4F_blockSizeID_t blockSizeID;
LZ4F_blockMode_t blockMode;
LZ4F_contentChecksum_t contentChecksumFlag;
LZ4F_frameType_t frameType;
unsigned long long contentSize;
unsigned dictID;
LZ4F_blockChecksum_t blockChecksumFlag;
}| Modifier and Type | Class and Description |
|---|---|
static class |
LZ4FFrameInfo.Buffer
An array of
LZ4FFrameInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BLOCKCHECKSUMFLAG
The struct member offsets.
|
static int |
BLOCKMODE
The struct member offsets.
|
static int |
BLOCKSIZEID
The struct member offsets.
|
static int |
CONTENTCHECKSUMFLAG
The struct member offsets.
|
static int |
CONTENTSIZE
The struct member offsets.
|
static int |
DICTID
The struct member offsets.
|
static int |
FRAMETYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
LZ4FFrameInfo(java.nio.ByteBuffer container)
Creates a
LZ4FFrameInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
blockChecksumFlag()
Returns the value of the
blockChecksumFlag field. |
LZ4FFrameInfo |
blockChecksumFlag(int value)
Sets the specified value to the
blockChecksumFlag field. |
int |
blockMode()
Returns the value of the
blockMode field. |
LZ4FFrameInfo |
blockMode(int value)
Sets the specified value to the
blockMode field. |
int |
blockSizeID()
Returns the value of the
blockSizeID field. |
LZ4FFrameInfo |
blockSizeID(int value)
Sets the specified value to the
blockSizeID field. |
static LZ4FFrameInfo |
calloc()
Returns a new
LZ4FFrameInfo instance allocated with memCalloc. |
static LZ4FFrameInfo.Buffer |
calloc(int capacity)
Returns a new
LZ4FFrameInfo.Buffer instance allocated with memCalloc. |
static LZ4FFrameInfo |
callocStack()
Returns a new
LZ4FFrameInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LZ4FFrameInfo.Buffer |
callocStack(int capacity)
Returns a new
LZ4FFrameInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LZ4FFrameInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FFrameInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LZ4FFrameInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FFrameInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
contentChecksumFlag()
Returns the value of the
contentChecksumFlag field. |
LZ4FFrameInfo |
contentChecksumFlag(int value)
Sets the specified value to the
contentChecksumFlag field. |
long |
contentSize()
Returns the value of the
contentSize field. |
LZ4FFrameInfo |
contentSize(long value)
Sets the specified value to the
contentSize field. |
static LZ4FFrameInfo |
create()
Returns a new
LZ4FFrameInfo instance allocated with BufferUtils. |
static LZ4FFrameInfo.Buffer |
create(int capacity)
Returns a new
LZ4FFrameInfo.Buffer instance allocated with BufferUtils. |
static LZ4FFrameInfo |
create(long address)
Returns a new
LZ4FFrameInfo instance for the specified memory address. |
static LZ4FFrameInfo.Buffer |
create(long address,
int capacity)
Create a
LZ4FFrameInfo.Buffer instance at the specified memory. |
static LZ4FFrameInfo |
createSafe(long address)
|
static LZ4FFrameInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
dictID()
Returns the value of the
dictID field. |
LZ4FFrameInfo |
dictID(int value)
Sets the specified value to the
dictID field. |
int |
frameType()
Returns the value of the
frameType field. |
LZ4FFrameInfo |
frameType(int value)
Sets the specified value to the
frameType field. |
static LZ4FFrameInfo |
malloc()
Returns a new
LZ4FFrameInfo instance allocated with memAlloc. |
static LZ4FFrameInfo.Buffer |
malloc(int capacity)
Returns a new
LZ4FFrameInfo.Buffer instance allocated with memAlloc. |
static LZ4FFrameInfo |
mallocStack()
Returns a new
LZ4FFrameInfo instance allocated on the thread-local MemoryStack. |
static LZ4FFrameInfo.Buffer |
mallocStack(int capacity)
Returns a new
LZ4FFrameInfo.Buffer instance allocated on the thread-local MemoryStack. |
static LZ4FFrameInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FFrameInfo.Buffer instance allocated on the specified MemoryStack. |
static LZ4FFrameInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FFrameInfo instance allocated on the specified MemoryStack. |
static int |
nblockChecksumFlag(long struct)
Unsafe version of
blockChecksumFlag(). |
static void |
nblockChecksumFlag(long struct,
int value)
Unsafe version of
blockChecksumFlag. |
static int |
nblockMode(long struct)
Unsafe version of
blockMode(). |
static void |
nblockMode(long struct,
int value)
Unsafe version of
blockMode. |
static int |
nblockSizeID(long struct)
Unsafe version of
blockSizeID(). |
static void |
nblockSizeID(long struct,
int value)
Unsafe version of
blockSizeID. |
static int |
ncontentChecksumFlag(long struct)
Unsafe version of
contentChecksumFlag(). |
static void |
ncontentChecksumFlag(long struct,
int value)
Unsafe version of
contentChecksumFlag. |
static long |
ncontentSize(long struct)
Unsafe version of
contentSize(). |
static void |
ncontentSize(long struct,
long value)
Unsafe version of
contentSize. |
static int |
ndictID(long struct)
Unsafe version of
dictID(). |
static void |
ndictID(long struct,
int value)
Unsafe version of
dictID. |
static int |
nframeType(long struct)
Unsafe version of
frameType(). |
static void |
nframeType(long struct,
int value)
Unsafe version of
frameType. |
LZ4FFrameInfo |
set(int blockSizeID,
int blockMode,
int contentChecksumFlag,
int frameType,
long contentSize,
int dictID,
int blockChecksumFlag)
Initializes this struct with the specified values.
|
LZ4FFrameInfo |
set(LZ4FFrameInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BLOCKSIZEID
public static final int BLOCKMODE
public static final int CONTENTCHECKSUMFLAG
public static final int FRAMETYPE
public static final int CONTENTSIZE
public static final int DICTID
public static final int BLOCKCHECKSUMFLAG
public LZ4FFrameInfo(java.nio.ByteBuffer container)
LZ4FFrameInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int blockSizeID()
blockSizeID field.public int blockMode()
blockMode field.public int contentChecksumFlag()
contentChecksumFlag field.public int frameType()
frameType field.public long contentSize()
contentSize field.public int dictID()
dictID field.public int blockChecksumFlag()
blockChecksumFlag field.public LZ4FFrameInfo blockSizeID(int value)
blockSizeID field.public LZ4FFrameInfo blockMode(int value)
blockMode field.public LZ4FFrameInfo contentChecksumFlag(int value)
contentChecksumFlag field.public LZ4FFrameInfo frameType(int value)
frameType field.public LZ4FFrameInfo contentSize(long value)
contentSize field.public LZ4FFrameInfo dictID(int value)
dictID field.public LZ4FFrameInfo blockChecksumFlag(int value)
blockChecksumFlag field.public LZ4FFrameInfo set(int blockSizeID, int blockMode, int contentChecksumFlag, int frameType, long contentSize, int dictID, int blockChecksumFlag)
public LZ4FFrameInfo set(LZ4FFrameInfo src)
src - the source structpublic static LZ4FFrameInfo malloc()
LZ4FFrameInfo instance allocated with memAlloc. The instance must be explicitly freed.public static LZ4FFrameInfo calloc()
LZ4FFrameInfo instance allocated with memCalloc. The instance must be explicitly freed.public static LZ4FFrameInfo create()
LZ4FFrameInfo instance allocated with BufferUtils.public static LZ4FFrameInfo create(long address)
LZ4FFrameInfo instance for the specified memory address.@Nullable public static LZ4FFrameInfo createSafe(long address)
public static LZ4FFrameInfo.Buffer malloc(int capacity)
LZ4FFrameInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LZ4FFrameInfo.Buffer calloc(int capacity)
LZ4FFrameInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LZ4FFrameInfo.Buffer create(int capacity)
LZ4FFrameInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static LZ4FFrameInfo.Buffer create(long address, int capacity)
LZ4FFrameInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LZ4FFrameInfo.Buffer createSafe(long address, int capacity)
public static LZ4FFrameInfo mallocStack()
LZ4FFrameInfo instance allocated on the thread-local MemoryStack.public static LZ4FFrameInfo callocStack()
LZ4FFrameInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static LZ4FFrameInfo mallocStack(org.lwjgl.system.MemoryStack stack)
LZ4FFrameInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static LZ4FFrameInfo callocStack(org.lwjgl.system.MemoryStack stack)
LZ4FFrameInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static LZ4FFrameInfo.Buffer mallocStack(int capacity)
LZ4FFrameInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static LZ4FFrameInfo.Buffer callocStack(int capacity)
LZ4FFrameInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static LZ4FFrameInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LZ4FFrameInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static LZ4FFrameInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LZ4FFrameInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nblockSizeID(long struct)
blockSizeID().public static int nblockMode(long struct)
blockMode().public static int ncontentChecksumFlag(long struct)
contentChecksumFlag().public static int nframeType(long struct)
frameType().public static long ncontentSize(long struct)
contentSize().public static int ndictID(long struct)
dictID().public static int nblockChecksumFlag(long struct)
blockChecksumFlag().public static void nblockSizeID(long struct,
int value)
blockSizeID.public static void nblockMode(long struct,
int value)
blockMode.public static void ncontentChecksumFlag(long struct,
int value)
contentChecksumFlag.public static void nframeType(long struct,
int value)
frameType.public static void ncontentSize(long struct,
long value)
contentSize.public static void ndictID(long struct,
int value)
dictID.public static void nblockChecksumFlag(long struct,
int value)
blockChecksumFlag.Copyright LWJGL. All Rights Reserved. License terms.