D
DrBob
gcc 3.3 on Mac OS X.
I need to dynamically grow a buffer by concatinating raw binary data
in chunks.
How do I use 'new' to grow the buffer size as its contents grow? I
know this can be done with realloc.. (realloc will give you a new
pointer to a new buffer that has the same contents as the previous
buffer and will free the previous buffer for you).
Perhaps there is a different class I could be using?
I need to dynamically grow a buffer by concatinating raw binary data
in chunks.
How do I use 'new' to grow the buffer size as its contents grow? I
know this can be done with realloc.. (realloc will give you a new
pointer to a new buffer that has the same contents as the previous
buffer and will free the previous buffer for you).
Perhaps there is a different class I could be using?