aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/DecoderBuffer.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DecoderBuffer.cxx b/src/DecoderBuffer.cxx
index 78a2ccdc6..4a5125bc5 100644
--- a/src/DecoderBuffer.cxx
+++ b/src/DecoderBuffer.cxx
@@ -130,6 +130,12 @@ decoder_buffer_fill(DecoderBuffer *buffer)
return true;
}
+size_t
+decoder_buffer_available(const DecoderBuffer *buffer)
+{
+ return buffer->length - buffer->consumed;;
+}
+
const void *
decoder_buffer_read(const DecoderBuffer *buffer, size_t *length_r)
{