diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/DecoderBuffer.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/decoder/DecoderBuffer.cxx b/src/decoder/DecoderBuffer.cxx index 47671513e..258edfab8 100644 --- a/src/decoder/DecoderBuffer.cxx +++ b/src/decoder/DecoderBuffer.cxx @@ -69,6 +69,12 @@ decoder_buffer_free(DecoderBuffer *buffer) DeleteVarSize(buffer); } +const InputStream & +decoder_buffer_get_stream(const DecoderBuffer *buffer) +{ + return *buffer->is; +} + bool decoder_buffer_is_empty(const DecoderBuffer *buffer) { @@ -123,6 +129,12 @@ decoder_buffer_fill(DecoderBuffer *buffer) return true; } +size_t +decoder_buffer_available(const DecoderBuffer *buffer) +{ + return buffer->length - buffer->consumed;; +} + ConstBuffer<void> decoder_buffer_read(const DecoderBuffer *buffer) { |