FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
layout.cpp File Reference
#include <fcb/layout.hpp>
#include <cstring>
#include <string>
#include "detail/checked.hpp"

Go to the source code of this file.

Namespaces

namespace  fcb
 

Functions

bool fcb::check_magic_bytes (bytes_view b)
 Mirrors fcb_core::check_magic_bytes (src/rust/fcb_core/src/lib.rs:56-58).
 
std::uint64_t fcb::rtree_index_size (std::uint64_t num_items, std::uint16_t node_size)
 Mirrors PackedRTree::index_size (packed_rtree/mod.rs:879-898).
 
FileLayout fcb::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 overflows.
 
void fcb::validate_layout_against_size (const FileLayout &l, std::uint64_t total_size)
 Throws unless the computed sections fit inside the resource.