* Shrink a buffer toward the end of its previous space. * Afterward, buffer_delete() remains the means of cleaning it up. */
| 101 | * Shrink a buffer toward the end of its previous space. |
| 102 | * Afterward, buffer_delete() remains the means of cleaning it up. */ |
| 103 | static inline void buffer_seek(struct buffer *b, size_t size) |
| 104 | { |
| 105 | b->offset += size; |
| 106 | b->size -= size; |
| 107 | b->data += size; |
| 108 | } |
| 109 | |
| 110 | /* Returns whether the buffer begins with the specified magic bytes. */ |
| 111 | static inline bool buffer_check_magic(const struct buffer *b, const char *magic, |
no outgoing calls
no test coverage detected