Differences From Artifact [97b258e329]:
- File clib/buffer.h — part of check-in [0894d03fbf] at 2023-04-15 20:47:04 on branch trunk — add generic routines from vesper (user: lexi, size: 380) [annotate] [blame] [check-ins using]
To Artifact [364399cab8]:
- File clib/buffer.h — part of check-in [f7c93df9f4] at 2024-07-10 19:07:16 on branch trunk — periodic update (user: lexi, size: 436) [annotate] [blame] [check-ins using]
6 6 char* ptr; 7 7 } buffer; 8 8 9 9 void buffer_init(buffer* b); 10 10 buffer buffer_mk(); 11 11 void buffer_push(buffer* b, strp const data); 12 12 strp buffer_crush(buffer* b, size_t max); 13 +strp buffer_str(buffer* b); 13 14 size_t buffer_pushs(buffer* b, char const* data); 14 15 #define buffer_pushl(b, d) (buffer_push(b, (strp){sizeof(d),(d)})) 15 16 void buffer_clear(buffer* b); 17 +void buffer_del(buffer* b);