Lines Matching defs:packed
40 std::vector<ELF::Xword>* packed) {
52 packed->push_back(count);
53 packed->push_back(current);
60 packed->push_back(count);
61 packed->push_back(current);
66 // condensed slot in packed, and the count of pairs are provided.
68 const std::vector<ELF::Xword>& packed,
81 size_t count = packed[i];
82 const ELF::Addr delta = packed[i + 1];
99 // Encode relative relocations into a run-length encoded (packed)
102 std::vector<ELF::Xword>* packed) {
112 packed->push_back(0);
114 // Initialize the packed data with the first offset, then follow up with
116 packed->push_back(relocations[0].r_offset);
117 Condense(deltas, packed);
119 // Fill in the packed pair count.
120 packed->at(0) = (packed->size() - 2) >> 1;
123 // Decode relative relocations from a run-length encoded (packed)
125 void RelocationRunLengthCodec::Decode(const std::vector<ELF::Xword>& packed,
127 // We need at least one packed pair after the packed pair count and start
129 if (packed.size() < 4)
132 // Ensure that the packed data offers enough pairs. There may be zero
134 CHECK(packed[0] <= (packed.size() - 2) >> 1);
136 // The first packed vector element is the pairs count and the second the
139 const size_t pairs_count = packed[0];
140 const ELF::Addr addr = packed[1];
141 Uncondense(addr, packed, 2, 2 + (pairs_count << 1), relocations);