pub fn compile_ctbnodes_dir_to_ctbnbdl_with_limits(
src_dir: &Path,
dst_dir: &Path,
framing: CtbnbdlFramingDcs,
max_nodes_per_bundle: usize,
max_bytes_per_bundle: usize,
) -> Result<usize>Expand description
Compiles all .ctbnodes chunk files in src_dir into grouped active .ctbnbdl bundle files
in dst_dir using custom node-count and byte-size limits, removing any stale .ctbnodes
or obsolete .ctbnbdl files in dst_dir.
When src_dir == dst_dir (e.g., assets/data/graph), this delegates to
compile_graph_bundles_from_ctbnodes_dir_with_limits targeting
bundles_dir_for_graph_dir(src_dir) (assets/data/graph-bundles/ and split/{live,history}/).
Returns the number of primary .ctbnbdl files written or updated.