From a07117ea554832ceaabcbde1c7d47ee11482b669 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 27 Aug 2016 12:09:17 +0200 Subject: [PATCH] fs/io/FileReader: add method Rewind() --- src/fs/io/FileReader.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fs/io/FileReader.hxx b/src/fs/io/FileReader.hxx index d371b7de6..8e5ee9a12 100644 --- a/src/fs/io/FileReader.hxx +++ b/src/fs/io/FileReader.hxx @@ -89,6 +89,10 @@ public: gcc_pure FileInfo GetFileInfo() const; + void Rewind() { + Seek(0); + } + void Seek(off_t offset); void Skip(off_t offset);