Top Description Interfaces Classes
module lwjgl.lz4

Package org.lwjgl.util.lz4

Annotations
@NonnullDefault

Contains bindings to LZ4, a lossless compression algorithm, providing compression speed > 500 MB/s per core, scalable with multi-cores CPU. It features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems.

Interface Summary

Modifier and TypeInterface and Description
public interface
LZ4FAllocFunctionI

Type


void * (*invoke) (
    void *opaqueState,
    size_t size
)
public interface
LZ4FCallocFunctionI

Type


void * (*invoke) (
    void *opaqueState,
    size_t size
)
public interface
LZ4FFreeFunctionI

Type


void * (*invoke) (
    void *opaqueState,
    void *address
)

Class Summary

Modifier and TypeClass and Description
pack-priv class
LibLZ4

Initializes the lz4 shared library.

public class
LZ4

Native bindings to LZ4, a lossless compression algorithm, providing compression speed > 500 MB/s per core, scalable with multi-cores CPU.

public abstract class
LZ4FAllocFunction

Type


void * (*invoke) (
    void *opaqueState,
    size_t size
)
public abstract class
LZ4FCallocFunction

Type


void * (*invoke) (
    void *opaqueState,
    size_t size
)
public class
LZ4FCompressOptions

Layout


struct LZ4F_compressOptions_t {
    unsigned stableSrc;
    unsigned reserved[3];
}
public class
LZ4FCustomMem

Layout


struct LZ4F_CustomMem {
    LZ4F_AllocFunction customAlloc;
    LZ4F_CallocFunction customCalloc;
    LZ4F_FreeFunction customFree;
    void * opaqueState;
}
public class
LZ4FDecompressOptions

Layout


struct LZ4F_decompressOptions_t {
    unsigned stableDst;
    unsigned skipChecksums;
    unsigned reserved1;
    unsigned reserved0;
}
public class
LZ4FFrameInfo

Makes it possible to set or read frame parameters.

public abstract class
LZ4FFreeFunction

Type


void * (*invoke) (
    void *opaqueState,
    void *address
)
public class
LZ4FPreferences

Makes it possible to supply advanced compression instructions to streaming interface.

public class
LZ4Frame

Native bindings to the frame API of LZ4.

public class
LZ4HC

Native bindings to the high-compression API of LZ4.

public class
LZ4HCCCtxInternal

Layout


struct LZ4HC_CCtx_internal {
    LZ4_u32 hashTable[LZ4HC_HASHTABLESIZE];
    LZ4_u16 chainTable[LZ4HC_MAXD];
    LZ4_byte const * end;
    LZ4_byte const * prefixStart;
    LZ4_byte const * dictStart;
    LZ4_u32 dictLimit;
    LZ4_u32 lowLimit;
    LZ4_u32 nextToUpdate;
    short compressionLevel;
    LZ4_i8 favorDecSpeed;
    LZ4_i8 dirty;
    LZ4HC_CCtx_internal * const dictCtx;
}
public class
LZ4Stream

Layout


union LZ4_stream_t {
    void * table[LZ4_STREAM_MINSIZE];
    struct LZ4_stream_t_internal internal_donotuse;
}
public class
LZ4StreamDecode

Layout


union LZ4_streamDecode_t {
    char minStateSize[LZ4_STREAMDECODE_MINSIZE];
    LZ4_streamDecode_t_internal internal_donotuse;
}
public class
LZ4StreamDecodeInternal

Layout


struct LZ4_streamDecode_t_internal {
    LZ4_byte const * externalDict;
    LZ4_byte const * prefixEnd;
    size_t extDictSize;
    size_t prefixSize;
}
public class
LZ4StreamHC

Layout


union LZ4_streamHC_t {
    char minStateSize[LZ4_STREAMHC_MINSIZE];
    struct LZ4HC_CCtx_internal internal_donotuse;
}
public class
LZ4StreamInternal

Layout


struct LZ4_stream_t_internal {
    LZ4_u32 hashTable[LZ4_HASH_SIZE_U32];
    LZ4_byte const * dictionary;
    LZ4_stream_t_internal * const dictCtx;
    LZ4_u32 currentOffset;
    LZ4_u32 tableType;
    LZ4_u32 dictSize;
}