1buffer_putalign(3) Library Functions Manual buffer_putalign(3)
2
3
4
6 buffer_putalign - write binary data to buffer
7
9 #include <buffer.h>
10
11 int buffer_putalign(buffer* b,const char* x,size_t len);
12
14 buffer_putalign is similar to buffer_put.
15
16 The difference to buffer_put is that, when there isn't enough space for
17 new data, buffer_put calls buffer_flush before copying any data, while
18 buffer_putalign fills all available space with data before calling buf‐
19 fer_flush.
20
22 0 if everything is fine, -1 on error (setting errno).
23
25 buffer_put(3), buffer_putsalign(3), buffer_flush(3), buffer(3)
26
27
28
29 buffer_putalign(3)