diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-02-28 08:20:22 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-02-28 08:20:22 -0700 |
| commit | 862c33fe0814ab7756aabcf55aa77fa9c3bd6ef2 (patch) | |
| tree | a10e21884c0ecb148d614ca4b3f925999f63900e /buffer.h | |
| parent | 05897c884af2ae3ed66f80b624f657dc898da2ae (diff) | |
| download | vis-862c33fe0814ab7756aabcf55aa77fa9c3bd6ef2.tar.gz vis-862c33fe0814ab7756aabcf55aa77fa9c3bd6ef2.tar.xz | |
buffer: remove more unused exposed functions
NOTE: buffer-test.c now directly includes buffer.c so that it can
continue to test functions which are defined as static/internal to
buffer.c
Diffstat (limited to 'buffer.h')
| -rw-r--r-- | buffer.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -34,18 +34,12 @@ bool buffer_put(Buffer*, const void *data, size_t len); bool buffer_put0(Buffer*, const char *data); /** Remove ``len`` bytes starting at ``pos``. */ bool buffer_remove(Buffer*, size_t pos, size_t len); -/** Insert ``len`` bytes of ``data`` at ``pos``. */ -bool buffer_insert(Buffer*, size_t pos, const void *data, size_t len); /** Insert NUL-terminated data at pos. */ bool buffer_insert0(Buffer*, size_t pos, const char *data); /** Append further content to the end. */ bool buffer_append(Buffer*, const void *data, size_t len); /** Append NUL-terminated data. */ bool buffer_append0(Buffer*, const char *data); -/** Insert ``len`` bytes of ``data`` at the start. */ -bool buffer_prepend(Buffer*, const void *data, size_t len); -/** Insert NUL-terminated data at the start. */ -bool buffer_prepend0(Buffer*, const char *data); /** Append formatted buffer content, ensures NUL termination on success. */ bool buffer_appendf(Buffer*, const char *fmt, ...) __attribute__((format(printf, 2, 3))); /** Return length of a buffer without trailing NUL byte. */ |
