BMallocIO

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.

Creative Commons License
Legal Notice
This work is licensed under a Creative Commons Attribution-Non commercial-No Derivative Works 3.0 License.