1buffer_fromarray(3) Library Functions Manual buffer_fromarray(3)
2
3
4
6 buffer_fromarray - initialize buffer structure from array
7
9 #include <array.h> #include <buffer.h>
10
11 void buffer_fromarray(buffer* b,array* a);
12
14 buffer_fromarray makes a virtual read buffer from an array. The buffer
15 reading functions will be able to read until the end of the data in the
16 array, then signal EOF. The buffer does not have its own buffer space,
17 it reuses the one in the array.
18
19 Do not touch the array until you are done with the buffer!
20
21 Reading data from the buffer will not change the stralloc.
22
24 buffer_fromsa(3), buffer_init(3), buffer(3), buffer_frombuf(3)
25
26
27
28 buffer_fromarray(3)