BMallocIO
represents a buffer of dynamically allocated memory. A
BMallocIO
object allocates the buffer when you first call
Write() or
WriteAt().
On subsequent calls,
BMallocIO
makes sure enough memory is
allocated to hold all the data you intend to write, reallocating it if
necessary. Memory is allocated in multiples of a block size that you can
set.