diff options
Diffstat (limited to 'comm/OLD/Event.cc')
-rw-r--r-- | comm/OLD/Event.cc | 16 |
1 files changed, 16 insertions, 0 deletions
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 <memory.h> 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 ()); +} + + |