aboutsummaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-04 20:26:14 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-05 09:16:39 +0200
commit1370963723917eed6c93e28c9970a2b27be57ea4 (patch)
tree14c6e45fc1a4ccd1721823d65edd8a892135e23d /include/io
parent8af4ee6f415fe316894e4423235dfc4ee70d8cbb (diff)
libio: remove buffer_offset from istream_t
Instead, make the buffer const, let the user adjust the pointer and size. The offset can then be inferred in precache. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/io')
-rw-r--r--include/io/istream.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/io/istream.h b/include/io/istream.h
index 7adb204..9a8257f 100644
--- a/include/io/istream.h
+++ b/include/io/istream.h
@@ -21,10 +21,9 @@ typedef struct istream_t {
sqfs_object_t base;
size_t buffer_used;
- size_t buffer_offset;
bool eof;
- sqfs_u8 *buffer;
+ const sqfs_u8 *buffer;
int (*precache)(struct istream_t *strm);