Lines Matching defs:data

101     WriteLE32(buff.data() + offsetof(EndCentralDir, signature), END_CENTRAL_SIGNATURE);

102 WriteLE16(buff.data() + offsetof(EndCentralDir, numDisk), 0);
103 WriteLE16(buff.data() + offsetof(EndCentralDir, startDiskOfCentralDir), 0);
104 WriteLE16(buff.data() + offsetof(EndCentralDir, totalEntriesInThisDisk), pkgEntryMapId_.size());
105 WriteLE16(buff.data() + offsetof(EndCentralDir, totalEntries), pkgEntryMapId_.size());
106 WriteLE32(buff.data() + offsetof(EndCentralDir, sizeOfCentralDir), offset - currentOffset_);
107 WriteLE32(buff.data() + offsetof(EndCentralDir, offset), currentOffset_);
108 WriteLE16(buff.data() + offsetof(EndCentralDir, commentLen), 0);
297 buff.data() + sizeof(LocalFileHeader), buff.capacity()
324 ret = EncodeLocalFileHeader(buff.data(), sizeof(LocalFileHeader), hasDataDesc, nameLen);
373 buff.data() + sizeof(CentralDirEntry), buff.capacity()
376 CentralDirEntry* centralDir = reinterpret_cast<CentralDirEntry*>(buff.data());
505 Size 8 bytes Size of compressed data
517 PKG_LOGE("data not not enough %zu", readLen);
539 PKG_LOGE("data not not enough %zu", readLen);
547 int32_t ZipFileEntry::DecodeLocalFileHeaderCheck(PkgStreamPtr inStream, PkgBuffer &data,
550 uint16_t flags = ReadLE16(data.buffer + offsetof(LocalFileHeader, flags));
551 uint32_t crc32 = ReadLE32(data.buffer + offsetof(LocalFileHeader, crc));
552 uint32_t packedSize = ReadLE32(data.buffer + offsetof(LocalFileHeader, compressedSize));
553 uint32_t unpackedSize = ReadLE32(data.buffer + offsetof(LocalFileHeader, uncompressedSize));
557 int ret = inStream->Read(data, currentPos, data.length, readLen);
563 PKG_LOGE("data not not enough %zu", readLen);
567 uint32_t signature = ReadLE32(data.buffer + offsetof(DataDescriptor, signature));
572 crc32 = ReadLE32(data.buffer + offsetof(DataDescriptor, crc));
573 packedSize = ReadLE32(data.buffer + offsetof(DataDescriptor, compressedSize));
574 unpackedSize = ReadLE32(data.buffer + offsetof(DataDescriptor, uncompressedSize));
584 int32_t ZipFileEntry::DecodeLocalFileHeader(PkgStreamPtr inStream, PkgBuffer &data, size_t currentPos,
588 int32_t ret = inStream->Read(data, currentPos, data.length, readLen);
594 PKG_LOGE("data not not enough %zu", readLen);
597 uint32_t signature = ReadLE32(data.buffer + offsetof(LocalFileHeader, signature));
603 uint16_t nameSize = ReadLE16(data.buffer + offsetof(LocalFileHeader, nameSize));
604 uint16_t extraSize = ReadLE16(data.buffer + offsetof(LocalFileHeader, extraSize));
612 PKG_LOGE("data not not enough %zu", readLen);
615 std::string fileName(reinterpret_cast<char*>(data.buffer + sizeof(LocalFileHeader)), fileNameLength);
616 uint16_t compressionMethod = ReadLE16(data.buffer + offsetof(LocalFileHeader, compressionMethod));
630 ret = DecodeLocalFileHeaderCheck(inStream, data, currentPos + currLen);
696 PKG_LOGI("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize,
755 PKG_LOGI("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu %s",