Returns the start of the underlying buffer, with the offset undone */
| 118 | |
| 119 | /* Returns the start of the underlying buffer, with the offset undone */ |
| 120 | static inline void *buffer_get_original_backing(const struct buffer *b) |
| 121 | { |
| 122 | if (!b) |
| 123 | return NULL; |
| 124 | return buffer_get(b) - buffer_offset(b); |
| 125 | } |
| 126 | |
| 127 | /* Creates an empty memory buffer with given size. |
| 128 | * Returns 0 on success, otherwise non-zero. */ |
no test coverage detected