Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
Lzma2Enc.h
Go to the documentation of this file.
1/* Lzma2Enc.h -- LZMA2 Encoder
22023-04-13 : Igor Pavlov : Public domain */
3
4#ifndef ZIP7_INC_LZMA2_ENC_H
5#define ZIP7_INC_LZMA2_ENC_H
6
7#include "LzmaEnc.h"
8
10
11#define LZMA2_ENC_PROPS_BLOCK_SIZE_AUTO 0
12#define LZMA2_ENC_PROPS_BLOCK_SIZE_SOLID ((UInt64)(Int64)-1)
13
14typedef struct
15{
16 CLzmaEncProps lzmaProps;
17 UInt64 blockSize;
18 int numBlockThreads_Reduced;
19 int numBlockThreads_Max;
20 int numTotalThreads;
22
25
26/* ---------- CLzmaEnc2Handle Interface ---------- */
27
28/* Lzma2Enc_* functions can return the following exit codes:
29SRes:
30 SZ_OK - OK
31 SZ_ERROR_MEM - Memory allocation error
32 SZ_ERROR_PARAM - Incorrect paramater in props
33 SZ_ERROR_WRITE - ISeqOutStream write callback error
34 SZ_ERROR_OUTPUT_EOF - output buffer overflow - version with (Byte *) output
35 SZ_ERROR_PROGRESS - some break from progress callback
36 SZ_ERROR_THREAD - error in multithreading functions (only for Mt version)
37*/
38
39typedef struct CLzma2Enc CLzma2Enc;
41// Z7_DECLARE_HANDLE(CLzma2EncHandle)
42
46void Lzma2Enc_SetDataSize(CLzma2EncHandle p, UInt64 expectedDataSiize);
49 ISeqOutStreamPtr outStream,
50 Byte *outBuf, size_t *outBufSize,
51 ISeqInStreamPtr inStream,
52 const Byte *inData, size_t inDataSize,
53 ICompressProgressPtr progress);
54
56
57#endif
#define EXTERN_C_BEGIN
Definition 7zTypes.h:20
unsigned long long int UInt64
Definition 7zTypes.h:234
int SRes
Definition 7zTypes.h:45
#define EXTERN_C_END
Definition 7zTypes.h:21
CLzma2Enc * CLzma2EncHandle
Definition Lzma2Enc.h:40
SRes Lzma2Enc_SetProps(CLzma2EncHandle p, const CLzma2EncProps *props)
Definition Lzma2Enc.c:465
CLzma2EncHandle Lzma2Enc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig)
Definition Lzma2Enc.c:385
SRes Lzma2Enc_Encode2(CLzma2EncHandle p, ISeqOutStreamPtr outStream, Byte *outBuf, size_t *outBufSize, ISeqInStreamPtr inStream, const Byte *inData, size_t inDataSize, ICompressProgressPtr progress)
Definition Lzma2Enc.c:716
void Lzma2Enc_SetDataSize(CLzma2EncHandle p, UInt64 expectedDataSiize)
Definition Lzma2Enc.c:478
void Lzma2Enc_Destroy(CLzma2EncHandle p)
Definition Lzma2Enc.c:434
Byte Lzma2Enc_WriteProperties(CLzma2EncHandle p)
Definition Lzma2Enc.c:485
void Lzma2EncProps_Normalize(CLzma2EncProps *p)
Definition Lzma2Enc.c:240
void Lzma2EncProps_Init(CLzma2EncProps *p)
Definition Lzma2Enc.c:231
Definition Lzma2Enc.c:356
Byte * outBuf
Definition Lzma2Enc.c:371
ISzAllocPtr allocBig
Definition Lzma2Enc.c:364
ISeqOutStreamPtr outStream
Definition Lzma2Enc.c:370
size_t outBufSize
Definition Lzma2Enc.c:374
ISzAllocPtr alloc
Definition Lzma2Enc.c:363
Definition Lzma2Enc.h:15
Definition LzmaEnc.h:14
Definition 7zTypes.h:460
unsigned char Byte
Definition zconf.h:391
const lzma_allocator const uint8_t * props
Definition filter.h:362