core: stream: replaced cached cursor counter with a tell() function callback

This commit is contained in:
2025-07-31 11:13:40 +01:00
parent 771044a95a
commit 67392d12e6
2 changed files with 28 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ typedef struct b_stream {
b_status (*s_close)(struct b_stream *);
b_status (*s_seek)(struct b_stream *, long long, b_stream_seek_origin);
b_status (*s_tell)(const struct b_stream *, size_t *);
b_status (*s_getc)(struct b_stream *, int *);
b_status (*s_read)(struct b_stream *, unsigned char *, size_t, size_t *);
b_status (*s_write)(