MCPcopy Create free account
hub / github.com/D7EAD/mkPIVM / block_start_offsets

Method block_start_offsets

include/mkpivm/bytecode.h:98–104  ·  view source on GitHub ↗

sorted block start offsets. block 0 is at 0, the rest follow emit order.

Source from the content-addressed store, hash-verified

96
97 // sorted block start offsets. block 0 is at 0, the rest follow emit order.
98 std::vector<std::size_t> block_start_offsets() const {
99 std::vector<std::size_t> out;
100 out.reserve(block_offsets_.size());
101 for (const auto& kv : block_offsets_) out.push_back(kv.second);
102 std::sort(out.begin(), out.end());
103 return out;
104 }
105
106 private:
107 std::vector<std::uint8_t> buf_;

Callers 1

package_shellcodeFunction · 0.80

Calls 3

beginMethod · 0.80
endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected