Home | History | Annotate | Download | only in dist

Lines Matching defs:cds

9427 **   First 4 bytes of a valid CDS record.
9555 ZipfileCDS cds; /* Parsed CDS record */
9557 u8 *aExtra; /* cds.nExtra+cds.nComment bytes of extra data */
9559 u8 *aData; /* cds.szCompressed bytes of compressed data */
9560 ZipfileEntry *pNext; /* Next element in in-memory CDS */
9699 sqlite3_free(p->cds.zFile);
9899 ** Magic numbers used to read CDS records.
9905 ** Decode the CDS record in buffer aBuf into (*pCDS). Return SQLITE_ERROR
10010 ** fields of the CDS structure passed as the only argument to a 32-bit
10049 ** mDate fields of the CDS structure passed as the first argument according
10094 ** for which the CDS record is at offset iOff.
10105 i64 iOff, /* Offset of CDS record */
10138 rc = zipfileReadCDS(aRead, &pNew->cds);
10140 *pzErr = sqlite3_mprintf("failed to read CDS at offset %lld", iOff);
10152 pNew->cds.zFile = sqlite3_mprintf("%.*s", nFile, aRead);
10155 if( pNew->cds.zFile==0 ){
10157 }else if( 0==zipfileScanExtra(&aRead[nFile], pNew->cds.nExtra, pt) ){
10158 pNew->mUnixTime = zipfileMtime(&pNew->cds);
10166 rc = zipfileReadData(pFile, aRead, szFix, pNew->cds.iOffset, pzErr);
10168 aRead = (u8*)&aBlob[pNew->cds.iOffset];
10173 pNew->iDataOff = pNew->cds.iOffset + ZIPFILE_LFH_FIXED_SZ;
10175 if( aBlob && pNew->cds.szCompressed ){
10177 memcpy(pNew->aData, &aBlob[pNew->iDataOff], pNew->cds.szCompressed);
10181 (int)pNew->cds.iOffset
10215 pCsr->iNextOff += (int)p->cds.nExtra + p->cds.nFile + p->cds.nComment;
10340 ZipfileCDS *pCDS = &pCsr->pCurrent->cds;
10541 iOff += (int)pNew->cds.nExtra + pNew->cds.nFile + pNew->cds.nComment;
10651 pNew->cds.zFile = sqlite3_mprintf("%s", zPath);
10652 if( pNew->cds.zFile==0 ){
10661 ZipfileCDS *pCds = &pEntry->cds;
10867 ZipfileEntry *pNew = 0; /* New in-memory CDS entry */
10903 if( zipfileComparePath(pOld->cds.zFile, zDelete, nDelete)==0 ){
10989 if( zipfileComparePath(p->cds.zFile, zPath, nPath)==0 ){
11010 /* Create the new CDS record. */
11015 pNew->cds.iVersionMadeBy = ZIPFILE_NEWENTRY_MADEBY;
11016 pNew->cds.iVersionExtract = ZIPFILE_NEWENTRY_REQUIRED;
11017 pNew->cds.flags = ZIPFILE_NEWENTRY_FLAGS;
11018 pNew->cds.iCompression = (u16)iMethod;
11019 zipfileMtimeToDos(&pNew->cds, mTime);
11020 pNew->cds.crc32 = iCrc32;
11021 pNew->cds.szCompressed = nData;
11022 pNew->cds.szUncompressed = (u32)sz;
11023 pNew->cds.iExternalAttr = (mode<<16);
11024 pNew->cds.iOffset = (u32)pTab->szCurrent;
11025 pNew->cds.nFile = (u16)nPath;
11073 ** Serialize the CDS structure into buffer aBuf[]. Return the number
11078 ZipfileCDS *pCDS = &pEntry->cds;
11174 ZipfileCDS *p = &pCsr->pCurrent->cds;
11241 ZipfileBuffer cds;
11393 e.cds.iVersionMadeBy = ZIPFILE_NEWENTRY_MADEBY;
11394 e.cds.iVersionExtract = ZIPFILE_NEWENTRY_REQUIRED;
11395 e.cds.flags = ZIPFILE_NEWENTRY_FLAGS;
11396 e.cds.iCompression = (u16)iMethod;
11397 zipfileMtimeToDos(&e.cds, (u32)e.mUnixTime);
11398 e.cds.crc32 = iCrc32;
11399 e.cds.szCompressed = nData;
11400 e.cds.szUncompressed = szUncompressed;
11401 e.cds.iExternalAttr = (mode<<16);
11402 e.cds.iOffset = p->body.n;
11403 e.cds.nFile = (u16)nName;
11404 e.cds.zFile = zName;
11407 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9;
11418 /* Append the CDS record to the directory of the new archive */
11419 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9;
11420 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out;
11421 p->cds.n += zipfileSerializeCDS(&e, &p->cds.a[p->cds.n]);
11454 eocd.nSize = p->cds.n;
11457 nZip = p->body.n + p->cds.n + ZIPFILE_EOCD_FIXED_SZ;
11463 memcpy(&aZip[p->body.n], p->cds.a, p->cds.n);
11464 zipfileSerializeEOCD(&eocd, &aZip[p->body.n + p->cds.n]);
11470 sqlite3_free(p->cds.a);