From 1370963723917eed6c93e28c9970a2b27be57ea4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 4 Jun 2023 20:26:14 +0200 Subject: 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 --- include/io/istream.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/io') 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); -- cgit v1.2.3