fn buffer_bytes(buffer: &Buffer) -> usize
The bytes of the whole allocation buffer is a slice of: the capacity is what a slice keeps alive.
buffer