summaryrefslogtreecommitdiff
path: root/src/decoder/DecoderBuffer.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 01:27:18 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 01:27:18 +0200
commitc400876df14af93c8ca3740297c79ea2cb8b0988 (patch)
treedc3ee4166c72727c8554a7ce47f30bee582d8802 /src/decoder/DecoderBuffer.hxx
parentc4bea3dfe45622fcb4de21cd52fc28deb85335f0 (diff)
parenta960e2ef48d21e73c7db7ead6f73c1b1d3ee8d42 (diff)
Merge branch 'v0.18.x'
Diffstat (limited to 'src/decoder/DecoderBuffer.hxx')
-rw-r--r--src/decoder/DecoderBuffer.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/decoder/DecoderBuffer.hxx b/src/decoder/DecoderBuffer.hxx
index d6f303c36..f295eb0b5 100644
--- a/src/decoder/DecoderBuffer.hxx
+++ b/src/decoder/DecoderBuffer.hxx
@@ -55,6 +55,10 @@ void
decoder_buffer_free(DecoderBuffer *buffer);
gcc_pure
+const InputStream &
+decoder_buffer_get_stream(const DecoderBuffer *buffer);
+
+gcc_pure
bool
decoder_buffer_is_empty(const DecoderBuffer *buffer);
@@ -76,6 +80,13 @@ bool
decoder_buffer_fill(DecoderBuffer *buffer);
/**
+ * How many bytes are stored in the buffer?
+ */
+gcc_pure
+size_t
+decoder_buffer_available(const DecoderBuffer *buffer);
+
+/**
* Reads data from the buffer. This data is not yet consumed, you
* have to call decoder_buffer_consume() to do that. The returned
* buffer becomes invalid after a decoder_buffer_fill() or a