Lines Matching defs:packed
14 // Encode relative relocations with addends into a delta encoded (packed)
18 std::vector<ELF::Sxword>* packed) {
24 packed->push_back(relocations.size());
33 packed->push_back(relocation->r_offset - offset);
35 packed->push_back(relocation->r_addend - addend);
40 // Decode relative relocations with addends from a delta encoded (packed)
42 void RelocationDeltaCodec::Decode(const std::vector<ELF::Sxword>& packed,
44 // We need at least one packed pair after the packed pair count to be
46 if (packed.size() < 3)
49 // Ensure that the packed data offers enough pairs. There may be zero
51 CHECK(static_cast<size_t>(packed[0]) <= (packed.size() - 1) >> 1);
56 // The first packed vector element is the pairs count. Start uncondensing
58 const size_t pairs_count = packed[0];
60 offset += packed[i];
61 addend += packed[i + 1];