From 4abec2f7b2021d493d1aeefba5419963e6da698b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 27 May 2013 21:53:40 +0200 Subject: stream: add partial read function This is a nice way to avoid an additional copy of the data when reading with stream_read(). --- stream/stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index 12ef430b28..68e22725b6 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -301,6 +301,7 @@ inline static int64_t stream_tell(stream_t *s) int stream_skip(stream_t *s, int64_t len); int stream_seek(stream_t *s, int64_t pos); int stream_read(stream_t *s, char *mem, int total); +int stream_read_partial(stream_t *s, char *buf, int buf_size); struct MPOpts; /* -- cgit v1.2.3