Write binary data to buffer and flush
#include <buffer.h>
int buffer_putflush(buffer* b,
const char* x,size_t len);
buffer_putflush is similar to calling buffer_put(b,x,len) and then buffer_flush(b).
0 if everything is fine, -1 on error (setting errno).