summaryrefslogtreecommitdiff
path: root/includes/Handle.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-13 18:14:41 +0100
committerPixel <pixel@nobis-crew.org>2011-11-13 18:14:41 +0100
commit1e6b5ff854b07dfd559795af8b9e775f58f4d6cd (patch)
tree55dfad1ba76c9fc0af7a8337d78281fc48e7d519 /includes/Handle.h
parentfcc93c08f30dc71aa9f1803299c6328ff9d69169 (diff)
Adding seek and tell aliases to rseek and rtell.
Diffstat (limited to 'includes/Handle.h')
-rw-r--r--includes/Handle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index 5def509..1d659a9 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -34,8 +34,10 @@ class Handle {
virtual ssize_t write(const void * buf, size_t count) throw (GeneralException);
void writeString(const char * str, ssize_t len = -1) { if (len < 0) len = strlen(str); write(str, len); }
void writeString(const String & str) { write(str.to_charp(), str.strlen()); }
+ void seek(off_t offset, int whence = SEEK_SET) { rseek(offset, whence); }
virtual void rseek(off_t offset, int whence = SEEK_SET) throw (GeneralException);
virtual void wseek(off_t offset, int whence = SEEK_SET) throw (GeneralException);
+ off_t tell() { return rtell(); }
virtual off_t rtell() throw (GeneralException);
virtual off_t wtell() throw (GeneralException);
virtual off_t getSize();