Lines Matching refs:comp
377 UpgradeCompInfo comp; in EncodeHeader() local
378 PKG_CHECK(!memset_s(&comp, sizeof(comp), 0, sizeof(comp)), in EncodeHeader()
383 fileInfo_.fileInfo.identity, {comp.address, sizeof(comp.address)}, len); in EncodeHeader()
385 …ret = PkgFile::ConvertStringToBuffer(fileInfo_.version, {comp.version, sizeof(comp.version)}, len); in EncodeHeader()
388 ret = memcpy_s(comp.digest, sizeof(comp.digest), fileInfo_.digest, sizeof(fileInfo_.digest)); in EncodeHeader()
390 WriteLE32(reinterpret_cast<uint8_t *>(&comp.size), fileInfo_.fileInfo.unpackedSize); in EncodeHeader()
391 WriteLE16(reinterpret_cast<uint8_t *>(&comp.id), fileInfo_.id); in EncodeHeader()
392 WriteLE32(reinterpret_cast<uint8_t *>(&comp.originalSize), fileInfo_.originalSize); in EncodeHeader()
393 comp.resType = fileInfo_.resType; in EncodeHeader()
394 comp.flags = fileInfo_.compFlags; in EncodeHeader()
395 comp.type = fileInfo_.type; in EncodeHeader()
398 PkgBuffer buffer(reinterpret_cast<uint8_t *>(&comp), sizeof(comp)); in EncodeHeader()
399 ret = outStream->Write(buffer, sizeof(comp), startOffset); in EncodeHeader()