Lines Matching refs:folder

252   CSzFolder *folder = p->db.Folders + folderIndex;  in SzArEx_GetFolderFullPackSize()  local
255 for (i = 0; i < folder->NumPackStreams; i++) in SzArEx_GetFolderFullPackSize()
536 static SRes SzGetNextFolderItem(CSzData *sd, CSzFolder *folder, ISzAlloc *alloc) in SzGetNextFolderItem() argument
544 folder->NumCoders = numCoders; in SzGetNextFolderItem()
546 MY_ALLOC(CSzCoderInfo, folder->Coders, (size_t)numCoders, alloc); in SzGetNextFolderItem()
549 SzCoderInfo_Init(folder->Coders + i); in SzGetNextFolderItem()
554 CSzCoderInfo *coder = folder->Coders + i; in SzGetNextFolderItem()
613 folder->NumBindPairs = numBindPairs = numOutStreams - 1; in SzGetNextFolderItem()
614 MY_ALLOC(CSzBindPair, folder->BindPairs, (size_t)numBindPairs, alloc); in SzGetNextFolderItem()
618 CSzBindPair *bp = folder->BindPairs + i; in SzGetNextFolderItem()
626 folder->NumPackStreams = numPackStreams = numInStreams - numBindPairs; in SzGetNextFolderItem()
627 MY_ALLOC(UInt32, folder->PackStreams, (size_t)numPackStreams, alloc); in SzGetNextFolderItem()
632 if (SzFolder_FindBindPairForInStream(folder, i) < 0) in SzGetNextFolderItem()
636 folder->PackStreams[0] = i; in SzGetNextFolderItem()
641 RINOK(SzReadNumber32(sd, folder->PackStreams + i)); in SzGetNextFolderItem()
675 CSzFolder *folder = (*folders) + i; in SzReadUnpackInfo() local
676 UInt32 numOutStreams = SzFolder_GetNumOutStreams(folder); in SzReadUnpackInfo()
678 MY_ALLOC(UInt64, folder->UnpackSizes, (size_t)numOutStreams, alloc); in SzReadUnpackInfo()
682 RINOK(SzReadNumber(sd, folder->UnpackSizes + j)); in SzReadUnpackInfo()
702 CSzFolder *folder = (*folders) + i; in SzReadUnpackInfo() local
703 folder->UnpackCRCDefined = crcsDefined[i]; in SzReadUnpackInfo()
704 folder->UnpackCRC = crcs[i]; in SzReadUnpackInfo()
827 CSzFolder *folder = folders + i; in SzReadSubStreamsInfo() local
828 UInt32 numSubstreams = folder->NumUnpackStreams; in SzReadSubStreamsInfo()
829 if (numSubstreams == 1 && folder->UnpackCRCDefined) in SzReadSubStreamsInfo()
832 (*digests)[si] = folder->UnpackCRC; in SzReadSubStreamsInfo()
1161 CSzFolder *folder; in SzReadAndDecodePackedStreams2() local
1173 folder = p->Folders; in SzReadAndDecodePackedStreams2()
1174 unpackSize = SzFolder_GetUnpackSize(folder); in SzReadAndDecodePackedStreams2()
1181 res = SzFolder_Decode(folder, p->PackSizes, in SzReadAndDecodePackedStreams2()
1185 if (folder->UnpackCRCDefined) in SzReadAndDecodePackedStreams2()
1186 if (CrcCalc(outBuffer->data, (size_t)unpackSize) != folder->UnpackCRC) in SzReadAndDecodePackedStreams2()
1349 CSzFolder *folder = p->db.Folders + folderIndex; in SzArEx_Extract() local
1350 UInt64 unpackSizeSpec = SzFolder_GetUnpackSize(folder); in SzArEx_Extract()
1373 res = SzFolder_Decode(folder, in SzArEx_Extract()
1379 if (folder->UnpackCRCDefined) in SzArEx_Extract()
1381 if (CrcCalc(*outBuffer, unpackSize) != folder->UnpackCRC) in SzArEx_Extract()