Classes | Typedefs | Functions
LZ4 Namespace Reference


struct  HashImpl
struct  HashImpl< true, ARCH64 >
struct  HashImpl< false, true >
struct  HashImpl< false, false >


using reg_t = uintptr_t


ALWAYS_INLINE unsigned count (const uint8_t *pIn, const uint8_t *pMatch, const uint8_t *pInLimit)
template<bool L64K, bool ARCH64>
ALWAYS_INLINE int compress_impl (const uint8_t *src, uint8_t *const dst, const int inputSize)
int compress (const uint8_t *src, uint8_t *dst, int srcSize)
int decompress (const uint8_t *src, uint8_t *dst, int compressedSize, int dstCapacity)
int compressBound (int iSize)

Typedef Documentation

◆ reg_t

using LZ4::reg_t = typedef uintptr_t

Definition at line 47 of file

Function Documentation

◆ compress()

int LZ4::compress ( const uint8_t *  src,
uint8_t *  dst,
int  srcSize 

Definition at line 516 of file

Referenced by openmsx::DeltaBlockCopy::compress().

◆ compress_impl()

template<bool L64K, bool ARCH64>
ALWAYS_INLINE int LZ4::compress_impl ( const uint8_t *  src,
uint8_t *const  dst,
const int  inputSize 

Definition at line 336 of file

References count(), step, unalignedLoad32(), unalignedStore32(), unlikely, and Endian::write_UA_L16().

◆ compressBound()

int LZ4::compressBound ( int  iSize)

Definition at line 51 of file lz4.hh.

Referenced by openmsx::DeltaBlockCopy::compress().

◆ count()

ALWAYS_INLINE unsigned LZ4::count ( const uint8_t *  pIn,
const uint8_t *  pMatch,
const uint8_t *  pInLimit 

◆ decompress()

int LZ4::decompress ( const uint8_t *  src,
uint8_t *  dst,
int  compressedSize,
int  dstCapacity 

Definition at line 540 of file

References gl::length(), likely, Endian::read_UA_L16(), unalignedStore32(), and unlikely.

Referenced by openmsx::DeltaBlockCopy::apply().