MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Build

Method Build

Bcore/src/main/cpp/dex/compact_offset_table.cc:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void CompactOffsetTable::Build(const std::vector<uint32_t>& offsets,
64 std::vector<uint8_t>* out_data) {
65 static constexpr size_t kNumOffsets = 2;
66 uint32_t out_offsets[kNumOffsets] = {};
67 CompactOffsetTable::Build(offsets, out_data, &out_offsets[0], &out_offsets[1]);
68 // Write the offsets at the start of the debug info.
69 out_data->insert(out_data->begin(),
70 reinterpret_cast<const uint8_t*>(&out_offsets[0]),
71 reinterpret_cast<const uint8_t*>(&out_offsets[kNumOffsets]));
72}
73
74void CompactOffsetTable::Build(const std::vector<uint32_t>& offsets,
75 std::vector<uint8_t>* out_data,

Callers

nothing calls this directly

Calls 7

EncodeUnsignedLeb128Function · 0.85
AlignmentPadVectorFunction · 0.85
insertMethod · 0.45
beginMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected