diff options
author | Max Kellermann <max@duempel.org> | 2016-02-19 18:18:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-19 18:18:12 +0100 |
commit | 8e0e4d7c0499b7d885b407be3851089f41f8c301 (patch) | |
tree | 277680177da32cd24f63ed6d25b7d0d5cfb98ef4 | |
parent | a5e8269c7230eeefd46382faa442c2f9c29ec958 (diff) |
system/FileDescriptor: add method Skip()
-rw-r--r-- | src/system/FileDescriptor.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index 75a76844c..5ce466ee1 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -146,6 +146,10 @@ public: return lseek(Get(), offset, SEEK_SET); } + off_t Skip(off_t offset) { + return lseek(Get(), offset, SEEK_CUR); + } + gcc_pure off_t Tell() const { return lseek(Get(), 0, SEEK_CUR); |