* Shallow copy a buffer. To clean up the resources, buffer_delete() * either one, but not both. */
| 93 | * Shallow copy a buffer. To clean up the resources, buffer_delete() |
| 94 | * either one, but not both. */ |
| 95 | static inline void buffer_clone(struct buffer *dest, const struct buffer *src) |
| 96 | { |
| 97 | buffer_splice(dest, src, 0, src->size); |
| 98 | } |
| 99 | |
| 100 | /* |
| 101 | * Shrink a buffer toward the end of its previous space. |
no test coverage detected