leideng's picture
download
raw
759 Bytes
#pragma once
#include <cstddef>
#include <cstdint>
#include <source_location>
#include <span>
#include <stdexcept>
#include <string>
#include <vector>
namespace radix_tree_v2 {
using token_t = std::int32_t;
using token_vec_t = std::vector<token_t>;
using token_slice = std::span<const token_t>;
using NodeHandle = std::size_t;
using IOTicket = std::uint32_t;
inline void _assert(
bool condition,
const char* message = "Assertion failed",
std::source_location loc = std::source_location::current()) {
if (!condition) [[unlikely]] {
std::string msg = message;
msg = msg + " at " + loc.file_name() + ":" + std::to_string(loc.line()) + " in " + loc.function_name();
throw std::runtime_error(msg);
}
}
} // namespace radix_tree_v2

Xet Storage Details

Size:
759 Bytes
·
Xet hash:
d044756bc004352eebfee2c543fb31400752ba913eccd1d54cae28681e2d5f37

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.