Home | History | Annotate | Download | only in C

Lines Matching refs:db

134   SzAr_Init(&p->db);

153 SzAr_Free(&p->db, alloc);
186 MY_ALLOC(UInt32, p->FolderStartPackStreamIndex, p->db.NumFolders, alloc);
187 for (i = 0; i < p->db.NumFolders; i++)
190 startPos += p->db.Folders[i].NumPackStreams;
193 MY_ALLOC(UInt64, p->PackStreamStartPositions, p->db.NumPackStreams, alloc);
195 for (i = 0; i < p->db.NumPackStreams; i++)
198 startPosSize += p->db.PackSizes[i];
201 MY_ALLOC(UInt32, p->FolderStartFileIndex, p->db.NumFolders, alloc);
202 MY_ALLOC(UInt32, p->FileIndexToFolderIndexMap, p->db.NumFiles, alloc);
204 for (i = 0; i < p->db.NumFiles; i++)
206 CSzFileItem *file = p->db.Files + i;
221 if (folderIndex >= p->db.NumFolders)
224 if (p->db.Folders[folderIndex].NumUnpackStreams != 0)
233 if (indexInFolder >= p->db.Folders[folderIndex].NumUnpackStreams)
252 CSzFolder *folder = p->db.Folders + folderIndex;
257 UInt64 t = size + p->db.PackSizes[packStreamIndex + i];
972 &p->db,
987 p->db.NumFiles = numFiles;
991 p->db.Files = files;
1349 CSzFolder *folder = p->db.Folders + folderIndex;
1374 p->db.PackSizes + p->FolderStartPackStreamIndex[folderIndex],
1391 CSzFileItem *fileItem = p->db.Files + fileIndex;
1394 *offset += (UInt32)p->db.Files[i].Size;