diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-28 16:27:54 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-28 16:30:38 +1100 |
| commit | 4ad97bd1527c6ccb2f31c61e9da33f2900379c04 (patch) | |
| tree | 04ce34ae274b280c500797caaf308681fae62182 /src/stream.c | |
| parent | 99c82d92180a7c1b6a1d3393d91f9fef0369edb5 (diff) | |
fix(bridges): Create new file stream moved to stdio bridge
Diffstat (limited to 'src/stream.c')
| -rw-r--r-- | src/stream.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/stream.c b/src/stream.c index b8e2647..19f4707 100644 --- a/src/stream.c +++ b/src/stream.c @@ -1,17 +1,3 @@ #include <tinyff/stream.h> -size_t ff_file_read(void *ptr, size_t size, void *user) -{ - FILE *f = (FILE *)user; - return fread(ptr, size, 1, f); -} - -ff_stream ff_create_file_stream(FILE *f) -{ - ff_stream stream; - stream.read = ff_file_read; - stream.user = (void *)f; - return stream; -} - -// Memory stream coming soon
\ No newline at end of file +// Hosted environments: Use bridges/stdio/stream.h
\ No newline at end of file |
