Commit 8e0e4d7c authored by Max Kellermann's avatar Max Kellermann

system/FileDescriptor: add method Skip()

parent a5e8269c
...@@ -146,6 +146,10 @@ public: ...@@ -146,6 +146,10 @@ public:
return lseek(Get(), offset, SEEK_SET); return lseek(Get(), offset, SEEK_SET);
} }
off_t Skip(off_t offset) {
return lseek(Get(), offset, SEEK_CUR);
}
gcc_pure gcc_pure
off_t Tell() const { off_t Tell() const {
return lseek(Get(), 0, SEEK_CUR); return lseek(Get(), 0, SEEK_CUR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment