Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
Lzma2Enc.c File Reference
#include "Precomp.h"
#include <string.h>
#include "Lzma2Enc.h"
#include "MtCoder.h"

Data Structures

struct  CLimitedSeqInStream
 
struct  CLzma2EncInt
 
struct  CLzma2Enc
 

Macros

#define LZMA2_CONTROL_LZMA   (1 << 7)
 
#define LZMA2_CONTROL_COPY_NO_RESET   2
 
#define LZMA2_CONTROL_COPY_RESET_DIC   1
 
#define LZMA2_CONTROL_EOF   0
 
#define LZMA2_LCLP_MAX   4
 
#define LZMA2_DIC_SIZE_FROM_PROP(p)
 
#define LZMA2_PACK_SIZE_MAX   (1 << 16)
 
#define LZMA2_COPY_CHUNK_SIZE   LZMA2_PACK_SIZE_MAX
 
#define LZMA2_UNPACK_SIZE_MAX   (1 << 21)
 
#define LZMA2_KEEP_WINDOW_SIZE   LZMA2_UNPACK_SIZE_MAX
 
#define LZMA2_CHUNK_SIZE_COMPRESSED_MAX   ((1 << 16) + 16)
 
#define PRF(x)
 

Functions

SRes LzmaEnc_PrepareForLzma2 (CLzmaEncHandle p, ISeqInStreamPtr inStream, UInt32 keepWindowSize, ISzAllocPtr alloc, ISzAllocPtr allocBig)
 
SRes LzmaEnc_MemPrepare (CLzmaEncHandle p, const Byte *src, SizeT srcLen, UInt32 keepWindowSize, ISzAllocPtr alloc, ISzAllocPtr allocBig)
 
SRes LzmaEnc_CodeOneMemBlock (CLzmaEncHandle p, BoolInt reInit, Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize)
 
const ByteLzmaEnc_GetCurBuf (CLzmaEncHandle p)
 
void LzmaEnc_Finish (CLzmaEncHandle p)
 
void LzmaEnc_SaveState (CLzmaEncHandle p)
 
void LzmaEnc_RestoreState (CLzmaEncHandle p)
 
void Lzma2EncProps_Init (CLzma2EncProps *p)
 
void Lzma2EncProps_Normalize (CLzma2EncProps *p)
 
CLzma2EncHandle Lzma2Enc_Create (ISzAllocPtr alloc, ISzAllocPtr allocBig)
 
void Lzma2Enc_Destroy (CLzma2EncHandle p)
 
SRes Lzma2Enc_SetProps (CLzma2EncHandle p, const CLzma2EncProps *props)
 
void Lzma2Enc_SetDataSize (CLzma2EncHandle p, UInt64 expectedDataSiize)
 
Byte Lzma2Enc_WriteProperties (CLzma2EncHandle p)
 
SRes Lzma2Enc_Encode2 (CLzma2EncHandle p, ISeqOutStreamPtr outStream, Byte *outBuf, size_t *outBufSize, ISeqInStreamPtr inStream, const Byte *inData, size_t inDataSize, ICompressProgressPtr progress)
 

Macro Definition Documentation

◆ LZMA2_CHUNK_SIZE_COMPRESSED_MAX

#define LZMA2_CHUNK_SIZE_COMPRESSED_MAX   ((1 << 16) + 16)

◆ LZMA2_CONTROL_COPY_NO_RESET

#define LZMA2_CONTROL_COPY_NO_RESET   2

◆ LZMA2_CONTROL_COPY_RESET_DIC

#define LZMA2_CONTROL_COPY_RESET_DIC   1

◆ LZMA2_CONTROL_EOF

#define LZMA2_CONTROL_EOF   0

◆ LZMA2_CONTROL_LZMA

#define LZMA2_CONTROL_LZMA   (1 << 7)

◆ LZMA2_COPY_CHUNK_SIZE

#define LZMA2_COPY_CHUNK_SIZE   LZMA2_PACK_SIZE_MAX

◆ LZMA2_DIC_SIZE_FROM_PROP

#define LZMA2_DIC_SIZE_FROM_PROP ( p)
Value:
(((UInt32)2 | ((p) & 1)) << ((p) / 2 + 11))
unsigned int UInt32
Definition bzlib_private.h:45

◆ LZMA2_KEEP_WINDOW_SIZE

#define LZMA2_KEEP_WINDOW_SIZE   LZMA2_UNPACK_SIZE_MAX

◆ LZMA2_LCLP_MAX

#define LZMA2_LCLP_MAX   4

◆ LZMA2_PACK_SIZE_MAX

#define LZMA2_PACK_SIZE_MAX   (1 << 16)

◆ LZMA2_UNPACK_SIZE_MAX

#define LZMA2_UNPACK_SIZE_MAX   (1 << 21)

◆ PRF

#define PRF ( x)
Value:
/* x */

Function Documentation

◆ Lzma2Enc_Create()

CLzma2EncHandle Lzma2Enc_Create ( ISzAllocPtr alloc,
ISzAllocPtr allocBig )

◆ Lzma2Enc_Destroy()

void Lzma2Enc_Destroy ( CLzma2EncHandle p)

◆ Lzma2Enc_Encode2()

SRes Lzma2Enc_Encode2 ( CLzma2EncHandle p,
ISeqOutStreamPtr outStream,
Byte * outBuf,
size_t * outBufSize,
ISeqInStreamPtr inStream,
const Byte * inData,
size_t inDataSize,
ICompressProgressPtr progress )

◆ Lzma2Enc_SetDataSize()

void Lzma2Enc_SetDataSize ( CLzma2EncHandle p,
UInt64 expectedDataSiize )

◆ Lzma2Enc_SetProps()

SRes Lzma2Enc_SetProps ( CLzma2EncHandle p,
const CLzma2EncProps * props )

◆ Lzma2Enc_WriteProperties()

Byte Lzma2Enc_WriteProperties ( CLzma2EncHandle p)

◆ Lzma2EncProps_Init()

void Lzma2EncProps_Init ( CLzma2EncProps * p)

◆ Lzma2EncProps_Normalize()

void Lzma2EncProps_Normalize ( CLzma2EncProps * p)

◆ LzmaEnc_CodeOneMemBlock()

SRes LzmaEnc_CodeOneMemBlock ( CLzmaEncHandle p,
BoolInt reInit,
Byte * dest,
size_t * destLen,
UInt32 desiredPackSize,
UInt32 * unpackSize )

◆ LzmaEnc_Finish()

void LzmaEnc_Finish ( CLzmaEncHandle p)

◆ LzmaEnc_GetCurBuf()

const Byte * LzmaEnc_GetCurBuf ( CLzmaEncHandle p)

◆ LzmaEnc_MemPrepare()

SRes LzmaEnc_MemPrepare ( CLzmaEncHandle p,
const Byte * src,
SizeT srcLen,
UInt32 keepWindowSize,
ISzAllocPtr alloc,
ISzAllocPtr allocBig )

◆ LzmaEnc_PrepareForLzma2()

SRes LzmaEnc_PrepareForLzma2 ( CLzmaEncHandle p,
ISeqInStreamPtr inStream,
UInt32 keepWindowSize,
ISzAllocPtr alloc,
ISzAllocPtr allocBig )

◆ LzmaEnc_RestoreState()

void LzmaEnc_RestoreState ( CLzmaEncHandle p)

◆ LzmaEnc_SaveState()

void LzmaEnc_SaveState ( CLzmaEncHandle p)