]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/memory.cpp
Wrap seek in a helper function and make it compatible with 64-bit offsets
[libs/core.git] / source / io / memory.cpp
index f89d9fc894c26d207e6e3b8300d9f9dc99c6f7ae..4a6296b44a907321a5e04a585e229523ff7caf86 100644 (file)
@@ -88,7 +88,7 @@ int Memory::get()
        return static_cast<unsigned char>(*pos++);
 }
 
-unsigned Memory::seek(int off, SeekType type)
+SeekOffset Memory::seek(SeekOffset off, SeekType type)
 {
        char *new_pos;
        if(type==S_BEG)
@@ -107,11 +107,6 @@ unsigned Memory::seek(int off, SeekType type)
        return pos-begin;
 }
 
-const Handle &Memory::get_event_handle()
-{
-       throw logic_error("Memory doesn't support events");
-}
-
 void Memory::check_mode(Mode m) const
 {
        if(m==M_WRITE && !(mode&M_WRITE))