-Handle Memory::get_event_handle()
-{
- throw Exception("Memory doesn't support events");
-}
-
-void Memory::check_mode(Mode m) const
-{
- if(m==M_WRITE)
- {
- if(!(mode&M_WRITE))
- throw InvalidState("Memory is not writable");
- if(pos==end)
- throw InvalidState("Attempt to write past end of Memory");
- }
-}
-