Lines Matching refs:cbSize
138 uint64_t cbSize;
293 pNewFile->cbSize = ObjInfo.cbObject;
503 static void rtTarSizeToRec(PRTTARRECORD pRecord, uint64_t cbSize)
511 if (cbSize < _4G * 2U)
512 RTStrPrintf(pRecord->h.size, sizeof(pRecord->h.size), "%0.11llo", cbSize);
530 puchField[cchField--] = cbSize & 0xff;
531 cbSize >>= 8;
537 static int rtTarCreateHeaderRecord(PRTTARRECORD pRecord, const char *pszSrcName, uint64_t cbSize,
550 rtTarSizeToRec(pRecord, cbSize);
586 static int rtTarAppendZeros(PRTTARFILEINTERNAL pFileInt, uint64_t cbSize)
600 if (cbAllWritten >= cbSize)
602 size_t cbToWrite = RT_MIN(cbSize - cbAllWritten, cbTmp);
634 if (pFileInt->cbSetSize > pFileInt->cbSize)
636 rc = rtTarAppendZeros(pFileInt, pFileInt->cbSetSize - pFileInt->cbSize);
644 uint64_t cbSizeAligned = RT_ALIGN(pFileInt->cbSize, sizeof(RTTARRECORD));
645 if (cbSizeAligned != pFileInt->cbSize)
647 /* Note the RTFile method. We didn't increase the cbSize or cbCurrentPos here. */
649 pFileInt->offStart + sizeof(RTTARRECORD) + pFileInt->cbSize,
651 cbSizeAligned - pFileInt->cbSize,
661 rc = rtTarCreateHeaderRecord(&record, pFileInt->pszFilename, pFileInt->cbSize,
722 pFileInt->cbSize += cbTmpWritten;
739 *pcbSize = RT_MAX(pFileInt->cbSetSize, pFileInt->cbSize);
745 RTR3DECL(int) RTTarFileSetSize(RTTARFILE hFile, uint64_t cbSize)
753 /** @todo If cbSize is smaller than pFileInt->cbSize we have to
755 pFileInt->cbSetSize = cbSize;