From f1027ed198535ce16cfb9c83ac802788ec750488 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 23 Oct 2013 21:22:29 +0200 Subject: InputStream: add method Rewind() --- src/InputStream.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/InputStream.hxx') diff --git a/src/InputStream.hxx b/src/InputStream.hxx index ac774f723..343f3277c 100644 --- a/src/InputStream.hxx +++ b/src/InputStream.hxx @@ -217,6 +217,13 @@ struct input_stream { */ bool LockSeek(offset_type offset, int whence, Error &error); + /** + * Rewind to the beginning of the stream. This is a wrapper + * for Seek(0, SEEK_SET, error). + */ + bool Rewind(Error &error); + bool LockRewind(Error &error); + /** * Returns true if the stream has reached end-of-file. * -- cgit v1.2.3