Initialize a buffer with the given constraints. */
| 68 | |
| 69 | /* Initialize a buffer with the given constraints. */ |
| 70 | static inline void buffer_init(struct buffer *b, char *name, void *data, |
| 71 | size_t size) |
| 72 | { |
| 73 | b->name = name; |
| 74 | b->data = data; |
| 75 | b->size = size; |
| 76 | b->offset = 0; |
| 77 | } |
| 78 | |
| 79 | /* Splice a buffer into another buffer. Note that it's up to the caller to |
| 80 | * bounds check the offset and size. The resulting buffer is backed by the same |
no outgoing calls
no test coverage detected