aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_buffer.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-09-30 15:22:36 +0200
committerMax Kellermann <max@duempel.org>2009-09-30 15:22:36 +0200
commitefb290073bfecfb051a9839ec30fb5c57524640d (patch)
tree5310da5082c17fa47fbc03454392d463b484aab7 /src/decoder_buffer.h
parent82c6c137808264cc84220274f8ab57e8c47d7772 (diff)
downloadmpd-efb290073bfecfb051a9839ec30fb5c57524640d.tar.gz
mpd-efb290073bfecfb051a9839ec30fb5c57524640d.tar.xz
mpd-efb290073bfecfb051a9839ec30fb5c57524640d.zip
decoder_buffer: added function decoder_buffer_skip()
Diffstat (limited to 'src/decoder_buffer.h')
-rw-r--r--src/decoder_buffer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/decoder_buffer.h b/src/decoder_buffer.h
index d951a4055..411e3bd88 100644
--- a/src/decoder_buffer.h
+++ b/src/decoder_buffer.h
@@ -93,4 +93,14 @@ decoder_buffer_read(const struct decoder_buffer *buffer, size_t *length_r);
void
decoder_buffer_consume(struct decoder_buffer *buffer, size_t nbytes);
+/**
+ * Skips the specified number of bytes, discarding its data.
+ *
+ * @param buffer the decoder_buffer object
+ * @param nbytes the number of bytes to skip
+ * @return true on success, false on error
+ */
+bool
+decoder_buffer_skip(struct decoder_buffer *buffer, size_t nbytes);
+
#endif