Lines Matching refs:alloc

906 void LzmaDec_FreeProbs(CLzmaDec *p, ISzAlloc *alloc)  in LzmaDec_FreeProbs()  argument
908 alloc->Free(alloc, p->probs); in LzmaDec_FreeProbs()
912 static void LzmaDec_FreeDict(CLzmaDec *p, ISzAlloc *alloc) in LzmaDec_FreeDict() argument
914 alloc->Free(alloc, p->dic); in LzmaDec_FreeDict()
918 void LzmaDec_Free(CLzmaDec *p, ISzAlloc *alloc) in LzmaDec_Free() argument
920 LzmaDec_FreeProbs(p, alloc); in LzmaDec_Free()
921 LzmaDec_FreeDict(p, alloc); in LzmaDec_Free()
950 static SRes LzmaDec_AllocateProbs2(CLzmaDec *p, const CLzmaProps *propNew, ISzAlloc *alloc) in LzmaDec_AllocateProbs2() argument
955 LzmaDec_FreeProbs(p, alloc); in LzmaDec_AllocateProbs2()
956 p->probs = (CLzmaProb *)alloc->Alloc(alloc, numProbs * sizeof(CLzmaProb)); in LzmaDec_AllocateProbs2()
964 SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) in LzmaDec_AllocateProbs() argument
968 RINOK(LzmaDec_AllocateProbs2(p, &propNew, alloc)); in LzmaDec_AllocateProbs()
973 SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) in LzmaDec_Allocate() argument
978 RINOK(LzmaDec_AllocateProbs2(p, &propNew, alloc)); in LzmaDec_Allocate()
982 LzmaDec_FreeDict(p, alloc); in LzmaDec_Allocate()
983 p->dic = (Byte *)alloc->Alloc(alloc, dicBufSize); in LzmaDec_Allocate()
986 LzmaDec_FreeProbs(p, alloc); in LzmaDec_Allocate()
997 ELzmaStatus *status, ISzAlloc *alloc) in LzmaDecode() argument
1008 res = LzmaDec_AllocateProbs(&p, propData, propSize, alloc); in LzmaDecode()
1023 LzmaDec_FreeProbs(&p, alloc); in LzmaDecode()