Lines Matching refs:alloc
22 static void LzInWindow_Free(CMatchFinder *p, ISzAlloc *alloc)
26 alloc->Free(alloc, p->bufferBase, 0);
33 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc)
43 LzInWindow_Free(p, alloc);
45 p->bufferBase = (Byte *)alloc->Alloc(alloc, (size_t)blockSize);
145 static void MatchFinder_FreeThisClassMemory(CMatchFinder *p, ISzAlloc *alloc)
147 alloc->Free(alloc, p->hash, 0);
151 void MatchFinder_Free(CMatchFinder *p, ISzAlloc *alloc)
153 MatchFinder_FreeThisClassMemory(p, alloc);
154 LzInWindow_Free(p, alloc);
157 static CLzRef* AllocRefs(UInt32 num, ISzAlloc *alloc)
162 return (CLzRef *)alloc->Alloc(alloc, sizeInBytes);
167 ISzAlloc *alloc)
172 MatchFinder_Free(p, alloc);
183 if (LzInWindow_Create(p, sizeReserv, alloc))
228 MatchFinder_FreeThisClassMemory(p, alloc);
229 p->hash = AllocRefs(newSize, alloc);
237 MatchFinder_Free(p, alloc);