pub const fn binary_buffer_length(size: Size) -> usize
Computes the correct size for the binary buffer based on the given dimensions.