15std::vector<std::byte>
BitsToBytes(std::span<const uint8_t> bits)
noexcept
17 std::vector<std::byte>
ret;
37 for (
size_t pos = 0; pos < buffer.size(); ++pos) {
39 if ((x & 0xFE) == 0)
continue;
std::vector< std::byte > BitsToBytes(std::span< const uint8_t > bits) noexcept
bool SanityCheckAsmap(const std::span< const std::byte > asmap, int bits)
Validates ASMap structure by simulating all possible execution paths.
uint32_t Interpret(const std::span< const std::byte > asmap, const std::span< const std::byte > ip)
Execute the ASMap bytecode to find the ASN for an IP.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.