diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-30 16:20:55 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-30 16:20:55 +1100 |
| commit | 014db462e69462d2052b63341024143155fd1ee5 (patch) | |
| tree | 3e68c371cb3bff1a1ec46c7412a037bcf99013d0 /include/tinyff | |
| parent | 810ef260dbd916e29c683f0658050e6047c33aa1 (diff) | |
feat(stream): Create writing callbacks for ff_stream
Diffstat (limited to 'include/tinyff')
| -rw-r--r-- | include/tinyff/stream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tinyff/stream.h b/include/tinyff/stream.h index d8705dd..879baf6 100644 --- a/include/tinyff/stream.h +++ b/include/tinyff/stream.h @@ -9,11 +9,20 @@ // WARNING: This is just for reading streams for now // Until I finally add encoding to PNG, it will remain read-only +// Note: I don't care, I'll add writing now. I was so corny back then. +// Now I listen to squee at 100% volume. his 2025 album is fire. +// another good album is apiary by gingerbee. +// oh yeah, and wetdream by willyrodriguezwastaken. that one is FIRE typedef size_t (*ff_read_cb)(void *ptr, size_t size, void *user); +typedef size_t (*ff_write_cb)(const void *ptr, size_t size, const void *user); +// ^ +// | +// there clang, happy now? typedef struct { ff_read_cb read; + ff_write_cb write; void *user; } ff_stream; |
