diff options
Diffstat (limited to 'lib/io/src/xfrm')
-rw-r--r-- | lib/io/src/xfrm/istream.c | 6 | ||||
-rw-r--r-- | lib/io/src/xfrm/ostream.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/io/src/xfrm/istream.c b/lib/io/src/xfrm/istream.c index c9bc41a..632409c 100644 --- a/lib/io/src/xfrm/istream.c +++ b/lib/io/src/xfrm/istream.c @@ -38,8 +38,8 @@ static int precache(istream_t *base) const sqfs_u8 *ptr; size_t avail; - ret = istream_get_buffered_data(xfrm->wrapped, &ptr, &avail, - sizeof(xfrm->uncompressed)); + ret = xfrm->wrapped->get_buffered_data(xfrm->wrapped, &ptr, + &avail, BUFSZ); if (ret < 0) return ret; if (ret > 0) @@ -58,7 +58,7 @@ static int precache(istream_t *base) } xfrm->buffer_used = out_off; - istream_advance_buffer(xfrm->wrapped, in_off); + xfrm->wrapped->advance_buffer(xfrm->wrapped, in_off); if (ret == XFRM_STREAM_BUFFER_FULL || out_off >= BUFSZ) break; diff --git a/lib/io/src/xfrm/ostream.c b/lib/io/src/xfrm/ostream.c index bd94515..79ed49a 100644 --- a/lib/io/src/xfrm/ostream.c +++ b/lib/io/src/xfrm/ostream.c @@ -42,7 +42,7 @@ static int flush_inbuf(ostream_xfrm_t *xfrm, bool finish) return -1; } - if (ostream_append(xfrm->wrapped, xfrm->outbuf, off_out)) + if (xfrm->wrapped->append(xfrm->wrapped, xfrm->outbuf, off_out)) return -1; off_out = 0; @@ -52,7 +52,7 @@ static int flush_inbuf(ostream_xfrm_t *xfrm, bool finish) } if (off_out > 0) { - if (ostream_append(xfrm->wrapped, xfrm->outbuf, off_out)) + if (xfrm->wrapped->append(xfrm->wrapped, xfrm->outbuf, off_out)) return -1; } |