4#ifndef ZIP7_INC_LZ_FIND_H
5#define ZIP7_INC_LZ_FIND_H
24 Byte streamEndWasReached;
36 ISeqInStreamPtr stream;
43 size_t directInputRem;
46 Byte numHashBytes_Min;
56#define Inline_MatchFinder_GetPointerToCurrentPos(p) ((const Byte *)(p)->buffer)
58#define Inline_MatchFinder_GetNumAvailableBytes(p) ((UInt32)((p)->streamPos - (p)->pos))
83#define MatchFinder_SET_DIRECT_INPUT_BUF(p, _src_, _srcLen_) { \
85 (p)->directInput = 1; \
86 (p)->buffer = (_src_); \
87 (p)->directInputRem = (_srcLen_); }
94#define MatchFinder_SET_STREAM(p, _stream_) { \
95 (p)->stream = _stream_; \
96 (p)->directInput = 0; }
112#define MatchFinder_REDUCE_OFFSETS(p, subValue) \
113 (p)->pos -= (subValue); \
114 (p)->streamPos -= (subValue);
118 size_t _cyclicBufferPos,
UInt32 _cyclicBufferSize,
UInt32 _cutValue,
129typedef const Byte * (*Mf_GetPointerToCurrentPos_Func)(
void *object);
130typedef UInt32 * (*Mf_GetMatches_Func)(
void *object,
UInt32 *distances);
#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
void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, size_t numItems)
Definition LzFind.c:795
void MatchFinder_Init_4(CMatchFinder *p)
Definition LzFind.c:559
void MatchFinder_ReadIfRequired(CMatchFinder *p)
Definition LzFind.c:217
void LzFindPrepare(void)
Definition LzFind.c:1706
void MatchFinder_MoveBlock(CMatchFinder *p)
Definition LzFind.c:190
void MatchFinder_Construct(CMatchFinder *p)
Definition LzFind.c:237
void(* Mf_Init_Func)(void *object)
Definition LzFind.h:127
UInt32(* Mf_GetNumAvailableBytes_Func)(void *object)
Definition LzFind.h:128
void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num)
Definition LzFind.c:1527
EXTERN_C_BEGIN typedef UInt32 CLzRef
Definition LzFind.h:11
void(* Mf_Skip_Func)(void *object, UInt32)
Definition LzFind.h:131
int MatchFinder_NeedMove(CMatchFinder *p)
Definition LzFind.c:208
void MatchFinder_Init_LowHash(CMatchFinder *p)
Definition LzFind.c:539
int MatchFinder_Create(CMatchFinder *p, UInt32 historySize, UInt32 keepAddBufferBefore, UInt32 matchMaxLen, UInt32 keepAddBufferAfter, ISzAllocPtr alloc)
Definition LzFind.c:376
void MatchFinder_Free(CMatchFinder *p, ISzAllocPtr alloc)
Definition LzFind.c:266
void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num)
Definition LzFind.c:1652
UInt32 * GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *buffer, CLzRef *son, size_t _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 _cutValue, UInt32 *distances, UInt32 maxLen)
Definition LzFind.c:962
void MatchFinder_Init(void *p)
Definition LzFind.c:580
UInt32 * Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances)
Definition LzFind.c:1161
UInt32 *(* Mf_GetMatches_Func)(void *object, UInt32 *distances)
Definition LzFind.h:130
void MatchFinder_Init_HighHash(CMatchFinder *p)
Definition LzFind.c:549
void MatchFinder_CreateVTable(CMatchFinder *p, IMatchFinder2 *vTable)
Definition LzFind.c:1664
UInt32 * Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances)
Definition LzFind.c:1505
const Byte *(* Mf_GetPointerToCurrentPos_Func)(void *object)
Definition LzFind.h:129
struct _CMatchFinder CMatchFinder
unsigned int UInt32
Definition bzlib_private.h:45
unsigned char Byte
Definition zconf.h:391