X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fmemory.cpp;h=4a6296b44a907321a5e04a585e229523ff7caf86;hb=e4afb5edb0b7834ef4872218c99207e6b589e9ce;hp=79956cdafecae37a113b7421d10cb30fadd1d2c1;hpb=8f2711fba7a2817840038630d9cf9a2060ecbe8e;p=libs%2Fcore.git diff --git a/source/io/memory.cpp b/source/io/memory.cpp index 79956cd..4a6296b 100644 --- a/source/io/memory.cpp +++ b/source/io/memory.cpp @@ -1,5 +1,6 @@ #include #include +#include "handle.h" #include "memory.h" using namespace std; @@ -87,7 +88,7 @@ int Memory::get() return static_cast(*pos++); } -unsigned Memory::seek(int off, SeekType type) +SeekOffset Memory::seek(SeekOffset off, SeekType type) { char *new_pos; if(type==S_BEG) @@ -106,11 +107,6 @@ unsigned Memory::seek(int off, SeekType type) return pos-begin; } -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))