#include <algorithm>
#include <cstring>
+#include "handle.h"
#include "memory.h"
using namespace std;
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)
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))