pub fn buffer_memory_bytes(width: u16, height: u16) -> usize
Compute the memory footprint of a buffer with the given dimensions.
This accounts for the cell array only (not dirty tracking or stack metadata).