system/FileDescriptor: add method Skip()
This commit is contained in:
parent
a5e8269c72
commit
8e0e4d7c04
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user