Classes | Typedefs | Functions
LZ4 Namespace Reference


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


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 44 of file

Function Documentation

◆ compress()

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

Definition at line 455 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 275 of file

References count(), unalignedLoad32(), unalignedStore32(), 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 

Definition at line 146 of file

References unalignedLoad16(), and unalignedLoad32().

Referenced by compress_impl().

◆ decompress()

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

Definition at line 479 of file

References Endian::read_UA_L16(), and unalignedStore32().

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