aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderBuffer.hxx
diff options
context:
space:
mode:
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