Home | History | Annotate | Download | only in C

Lines Matching full:alloc

17 static void LzInWindow_Free(CMatchFinder *p, ISzAlloc *alloc)

21 alloc->Free(alloc, p->bufferBase);
28 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc)
38 LzInWindow_Free(p, alloc);
40 p->bufferBase = (Byte *)alloc->Alloc(alloc, (size_t)blockSize);
151 static void MatchFinder_FreeThisClassMemory(CMatchFinder *p, ISzAlloc *alloc)
153 alloc->Free(alloc, p->hash);
157 void MatchFinder_Free(CMatchFinder *p, ISzAlloc *alloc)
159 MatchFinder_FreeThisClassMemory(p, alloc);
160 LzInWindow_Free(p, alloc);
163 static CLzRef* AllocRefs(UInt32 num, ISzAlloc *alloc)
168 return (CLzRef *)alloc->Alloc(alloc, sizeInBytes);
173 ISzAlloc *alloc)
178 MatchFinder_Free(p, alloc);
189 if (LzInWindow_Create(p, sizeReserv, alloc))
233 MatchFinder_FreeThisClassMemory(p, alloc);
234 p->hash = AllocRefs(newSize, alloc);
242 MatchFinder_Free(p, alloc);