Compression

Windows
MacOS
Linux

Classes

Typedefs

Functions

Name Description

Public function

LZ4int

 

LZ4_compress_default

(
    const char* src,
    char* dst,
    int srcSize,
    int dstCapacity
)

LZ4_compress_default() : Compresses 'srcSize' bytes from buffer 'src' into already allocated 'dst' buffer of size 'dstCapacity'.

Public function

LZ4int

 

LZ4_compress_destSize

(
    const char* src,
    char* dst,
    int* srcSizePtr,
    int targetDstSize
)

LZ4_compress_destSize() : Reverse the logic : compresses as much data as possible from 'src' buffer into already allocated buffer 'dst', of size >= 'targetDestSize'.

Public function

LZ4int

 

LZ4_compress_fast

(
    const char* src,
    char* dst,
    int srcSize,
    int dstCapacity,
    int acceleration
)

LZ4_compress_fast() : Same as LZ4_compress_default(), but allows selection of "acceleration" factor.

Public function

LZ4int

 

LZ4_compress_fast_continue

(
    LZ4_stream_t* streamPtr,
    const char* src,
    char* dst,
    int srcSize,
    int dstCapacity,
    int acceleration
)

LZ4_compress_fast_continue() : Compress 'src' content using data from previously compressed blocks, for better compression ratio.

Public function

LZ4int

 

LZ4_compress_fast_extState

(
    void* state,
    const char* src,
    char* dst,
    int srcSize,
    int dstCapacity,
    int acceleration
)

Public function

LZ4int

 

LZ4_compress_HC

(
    const char* src,
    char* dst,
    int srcSize,
    int dstCapacity,
    int compressionLevel
)

LZ4_compress_HC() : Compress data from src_ into dst_, using the powerful but slower "HC" algorithm.

Public function

LZ4int

 

LZ4_compress_HC_continue

(
    LZ4_streamHC_t* streamHCPtr,
    const char* src,
    char* dst,
    int srcSize,
    int maxDstSize
)

Public function

LZ4int

 

LZ4_compress_HC_continue_destSize

(
    LZ4_streamHC_t* LZ4_streamHCPt...,
    const char* src,
    char* dst,
    int* srcSizePtr,
    int targetDstSize
)

LZ4_compress_HC_continue_destSize() : v1.9.0+ Similar to LZ4_compress_HC_continue(), but will read as much data as possible from src_ to fit into targetDstSize_ budget.

Public function

LZ4int

 

LZ4_compress_HC_destSize

(
    void* stateHC,
    const char* src,
    char* dst,
    int* srcSizePtr,
    int targetDstSize,
    int compressionLevel
)

LZ4_compress_HC_destSize() : v1.9.0+ Will compress as much data as possible from src_ to fit into targetDstSize_ budget.

Public function

LZ4int

 

LZ4_compress_HC_extStateHC

(
    void* stateHC,
    const char* src,
    char* dst,
    int srcSize,
    int maxDstSize,
    int compressionLevel
)

Public function

LZ4int

 

LZ4_compressBound

(
    int inputSize
)

LZ4_compressBound() : Provides the maximum size that LZ4 compression may output in a "worst case" scenario (input data not compressible) This function is primarily useful for memory allocation purposes (destination buffer size).

Public function

LZ4LZ4_strea...

 

LZ4_createStream()

Public function

LZ4LZ4_strea...

 

LZ4_createStreamDecode()

LZ4_createStreamDecode() and LZ4_freeStreamDecode() : creation / destruction of streaming decompression tracking context.

Public function

LZ4LZ4_strea...

 

LZ4_createStreamHC()

LZ4_createStreamHC() and LZ4_freeStreamHC() : These functions create and release memory for LZ4 HC streaming state.

Public function

LZ4int

 

LZ4_decoderRingBufferSize

(
    int maxBlockSize
)

LZ4_decoderRingBufferSize() : v1.8.2+

Public function

LZ4int

 

LZ4_decompress_safe

(
    const char* src,
    char* dst,
    int compressedSize,
    int dstCapacity
)

LZ4_decompress_safe() : compressedSize : is the exact complete size of the compressed block.

Public function

LZ4int

 

LZ4_decompress_safe_continue

(
    LZ4_streamDecode_t* LZ4_stream...,
    const char* src,
    char* dst,
    int srcSize,
    int dstCapacity
)

LZ4_decompress*continue() : These decoding functions allow decompression of consecutive blocks in "streaming" mode.

Public function

LZ4int

 

LZ4_decompress_safe_partial

(
    const char* src,
    char* dst,
    int srcSize,
    int targetOutputSize,
    int dstCapacity
)

LZ4_decompress_safe_partial() : Decompress an LZ4 compressed block, of size 'srcSize' at position 'src', into destination buffer 'dst' of size 'dstCapacity'.

Public function

LZ4int

 

LZ4_decompress_safe_usingDict

(
    const char* src,
    char* dst,
    int srcSize,
    int dstCapcity,
    const char* dictStart,
    int dictSize
)

LZ4_decompress*usingDict() : These decoding functions work the same as a combination of LZ4_setStreamDecode() followed by LZ4_decompress*continue() They are stand-alone, and don't need an LZ4_streamDecode_t structure.

Public function

LZ4int

 

LZ4_freeStream

(
    LZ4_stream_t* streamPtr
)

Public function

LZ4int

 

LZ4_freeStreamDecode

(
    LZ4_streamDecode_t* LZ4_stream
)

Public function

LZ4int

 

LZ4_freeStreamHC

(
    LZ4_streamHC_t* streamHCPtr
)

Public function

LZ4LZ4_strea...

 

LZ4_initStream

(
    void* buffer,
    size_t size
)

LZ4_initStream() : v1.9.0+ An LZ4_stream_t structure must be initialized at least once.

Public function

LZ4LZ4_strea...

 

LZ4_initStreamHC

(
    void* buffer,
    size_t size
)

LZ4_streamHC_t : This structure allows static allocation of LZ4 HC streaming state.

Public function

LZ4int

 

LZ4_loadDict

(
    LZ4_stream_t* streamPtr,
    const char* dictionary,
    int dictSize
)

LZ4_loadDict() : Use this function to reference a static dictionary into LZ4_stream_t.

Public function

LZ4int

 

LZ4_loadDictHC

(
    LZ4_streamHC_t* streamHCPtr,
    const char* dictionary,
    int dictSize
)

Public function

LZ4void

 

LZ4_resetStream

(
    LZ4_stream_t* streamPtr
)

LZ4_decompress_fast() : unsafe! These functions used to be faster than LZ4_decompress_safe(), but it has changed, and they are now slower than LZ4_decompress_safe().

Public function

LZ4void

 

LZ4_resetStream_fast

(
    LZ4_stream_t* streamPtr
)

LZ4_resetStream_fast() : v1.9.0+ Use this to prepare an LZ4_stream_t for a new chain of dependent blocks (e.g., LZ4_compress_fast_continue()).

Public function

LZ4void

 

LZ4_resetStreamHC

(
    LZ4_streamHC_t* streamHCPtr,
    int compressionLevel
)

LZ4_resetStreamHC() is now replaced by LZ4_initStreamHC().

Public function

LZ4void

 

LZ4_resetStreamHC_fast

(
    LZ4_streamHC_t* streamHCPtr,
    int compressionLevel
)

These functions compress data in successive blocks of any size, using previous blocks as dictionary, to improve compression ratio.

Public function

LZ4int

 

LZ4_saveDict

(
    LZ4_stream_t* streamPtr,
    char* safeBuffer,
    int maxDictSize
)

LZ4_saveDict() : If last 64KB data cannot be guaranteed to remain available at its current memory location, save it into a safer place (char* safeBuffer).

Public function

LZ4int

 

LZ4_saveDictHC

(
    LZ4_streamHC_t* streamHCPtr,
    char* safeBuffer,
    int maxDictSize
)

Public function

LZ4int

 

LZ4_setStreamDecode

(
    LZ4_streamDecode_t* LZ4_stream...,
    const char* dictionary,
    int dictSize
)

LZ4_setStreamDecode() : An LZ4_streamDecode_t context can be allocated once and re-used multiple times.

Public function

LZ4int

 

LZ4_sizeofState()

LZ4_compress_fast_extState() : Same as LZ4_compress_fast(), using an externally allocated memory space for its state.

Public function

LZ4int

 

LZ4_sizeofStateHC()

LZ4_compress_HC_extStateHC() : Same as LZ4_compress_HC(), but using an externally allocated memory segment for `state_.

Public function

LZ4int

 

LZ4_versionNumber()

Library version number; useful to check dll version

Public function

LZ4const cha...

 

LZ4_versionString()

Library version string; useful to check dll version

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss