1 #ifndef MSP_IO_SEEKABLE_H_
2 #define MSP_IO_SEEKABLE_H_
4 #include <msp/core/inttypes.h>
12 typedef Int64 SeekOffset;
22 class Seekable: public Base
28 /** Changes the read/write offset. Returns the new offset. */
29 virtual SeekOffset seek(SeekOffset, SeekType) = 0;
31 /** Returns the current read/write offset. */
32 virtual SeekOffset tell() const = 0;
36 SeekOffset sys_seek(Handle &, SeekOffset, SeekType);