diff options
author | wm4 <wm4@nowhere> | 2013-05-27 21:53:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-16 22:05:09 +0200 |
commit | 4abec2f7b2021d493d1aeefba5419963e6da698b (patch) | |
tree | ddf791a6d3c9af8bd84c383a8938b3e5561eaef3 /stream/stream.h | |
parent | 34a383664ad570b3a85a698f61c494d4ff449d9a (diff) | |
download | mpv-4abec2f7b2021d493d1aeefba5419963e6da698b.tar.bz2 mpv-4abec2f7b2021d493d1aeefba5419963e6da698b.tar.xz |
stream: add partial read function
This is a nice way to avoid an additional copy of the data when reading
with stream_read().
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; /* |