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

Method block_offset

include/mkpivm/bytecode.h:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 std::uint32_t block_offset(std::uint32_t block_id) const {
39 auto it = block_offsets_.find(block_id);
40 if (it == block_offsets_.end()) throw Error("block_offset: unbound id");
41 return static_cast<std::uint32_t>(it->second);
42 }
43
44 // placeholder rel32 to a target block. resolved later to target_off
45 // minus end_of_field

Callers 1

package_shellcodeFunction · 0.80

Calls 3

ErrorClass · 0.85
findMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected