pub fn calculate_canopy_depth_header_v1( max_depth: usize, max_buffer_size: usize, tree_size: usize, ) -> u8