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