openMSX
Classes | Typedefs | Functions
LZ4 Namespace Reference

Classes

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

Typedefs

using reg_t = uintptr_t
 

Functions

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 45 of file lz4.cc.

Function Documentation

◆ compress()

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

Definition at line 456 of file lz4.cc.

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 276 of file lz4.cc.

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

◆ compressBound()

int LZ4::compressBound ( int  iSize)
inline

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 147 of file lz4.cc.

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 480 of file lz4.cc.

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

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