SYNTAX
#include <buffer.h>int buffer_tosa(buffer* b,stralloc* sa);
DESCRIPTION
buffer_tosa makes a virtual write buffer from a stralloc. The buffer writing functions will append data to the stralloc until the stralloc fails to allocate more memory. You still need to flush the buffer.Note that in the end the stralloc will have allocated more memory than is needed to hold the actual contents. The waste is 1024 bytes.