diff options
author | David Robillard <d@drobilla.net> | 2018-06-15 09:26:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9 (patch) | |
tree | 70a49bcc4d79d83d0f80f115da457514e09977d0 /include/serd/buffer.h | |
parent | fe0b6d5d4d78cb31e1bf2381198890d070e46ed1 (diff) | |
download | serd-b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9.tar.gz serd-b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9.tar.bz2 serd-b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9.zip |
Bring read/write interface closer to the C standard
Diffstat (limited to 'include/serd/buffer.h')
-rw-r--r-- | include/serd/buffer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/serd/buffer.h b/include/serd/buffer.h index 90b51a48..f1bfa897 100644 --- a/include/serd/buffer.h +++ b/include/serd/buffer.h @@ -28,14 +28,15 @@ typedef struct { /** A convenience sink function for writing to a string. - This function can be used as a #SerdSink to write to a SerdBuffer which is - resized as necessary with realloc(). The `stream` parameter must point to + This function can be used as a #SerdWriteFunc to write to a SerdBuffer which + is resized as necessary with realloc(). The `stream` parameter must point to an initialized #SerdBuffer. When the write is finished, the string should be retrieved with serd_buffer_sink_finish(). */ SERD_API size_t serd_buffer_sink(const void* SERD_NONNULL buf, - size_t len, + size_t size, + size_t nmemb, void* SERD_NONNULL stream); /** |