44 std::uint16_t index_node_size, std::uint64_t attr_index_size);
Minimal C++17 stand-in for std::span: a non-owning view over contiguous memory.
constexpr std::uint64_t kMaxFeatureSize
Hard ceiling on a single feature's byte length, enforced before allocating.
std::uint64_t rtree_index_size(std::uint64_t num_items, std::uint16_t node_size)
Mirrors PackedRTree::index_size (packed_rtree/mod.rs:879-898).
constexpr std::uint16_t kDefaultNodeSize
constexpr std::size_t kHeaderMinBufferSize
constexpr std::size_t kNodeItemSize
constexpr std::size_t kHeaderMaxBufferSize
constexpr std::size_t kHeaderSizeSize
FileLayout compute_layout(std::uint32_t header_size, std::uint64_t features_count, std::uint16_t index_node_size, std::uint64_t attr_index_size)
Throws fcb::Error{IllegalHeaderSize} when header_size is out of range or any size arithmetic overflow...
constexpr std::uint8_t kVersion
void validate_layout_against_size(const FileLayout &l, std::uint64_t total_size)
Throws unless the computed sections fit inside the resource.
bool check_magic_bytes(bytes_view b)
Mirrors fcb_core::check_magic_bytes (src/rust/fcb_core/src/lib.rs:56-58).
constexpr std::size_t kMagicBytesSize
Byte offsets of each section.
std::uint64_t rtree_begin
std::uint64_t attr_index_size
std::uint64_t attr_index_begin
std::uint64_t feature_begin