From 8ad2474d8a297c4c85f715f3577c0609628ebce5 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 10 May 1994 09:52:27 +0000 Subject: Now derive from UchMessage --- comm/OLD/Event.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'comm/OLD/Event.cc') diff --git a/comm/OLD/Event.cc b/comm/OLD/Event.cc index 5fdef7c..716715f 100644 --- a/comm/OLD/Event.cc +++ b/comm/OLD/Event.cc @@ -13,6 +13,7 @@ */ #include "Event.h" +#include "Channel.h" #include UchEventFeatureList :: UchEventFeatureList (const UchEventFeatureList& base, int nbf, UchEventFeature* f) @@ -119,3 +120,18 @@ UchEvent :: GetFeature (int i, void* data) memcpy (data, Data+offset, size); } +void +UchEvent :: WriteTo (UchIOS& s) +{ + // what about byte swapping? + s.WriteBuf ((const byte*) Data, Type.GetTotalSize ()); +} + +void +UchEvent :: ReadFrom (UchIOS& s, lword) +{ + // what about byte swapping? + s.ReadBuf ((byte*) Data, Type.GetTotalSize ()); +} + + -- cgit v1.1