system/FileDescriptor: add method Tell()
This commit is contained in:
parent
7f6e1fbc8d
commit
077e95da85
|
@ -146,6 +146,11 @@ public:
|
|||
return lseek(Get(), offset, SEEK_SET);
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
off_t Tell() const {
|
||||
return lseek(Get(), 0, SEEK_CUR);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the size of the file in bytes, or -1 on error.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue