aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderBuffer.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 00:14:15 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 00:35:32 +0200
commit4fe272a7fbe45ab76f3af417d989c37fd4298ed1 (patch)
tree0577a4a1cacf38f60b5455751b5a4cb8e5297081 /src/DecoderBuffer.hxx
parenta7d9f248eab1af41fd5dbb31e394c07b8e059220 (diff)
downloadmpd-4fe272a7fbe45ab76f3af417d989c37fd4298ed1.tar.gz
mpd-4fe272a7fbe45ab76f3af417d989c37fd4298ed1.tar.xz
mpd-4fe272a7fbe45ab76f3af417d989c37fd4298ed1.zip
DecoderBuffer: add method _available()
Diffstat (limited to 'src/DecoderBuffer.hxx')
-rw-r--r--src/DecoderBuffer.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DecoderBuffer.hxx b/src/DecoderBuffer.hxx
index 0eaf0c4f3..65c6e0d2e 100644
--- a/src/DecoderBuffer.hxx
+++ b/src/DecoderBuffer.hxx
@@ -78,6 +78,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