diff options
author | chatty | 1994-05-10 09:52:27 +0000 |
---|---|---|
committer | chatty | 1994-05-10 09:52:27 +0000 |
commit | 8ad2474d8a297c4c85f715f3577c0609628ebce5 (patch) | |
tree | 6086447967cd766b27b1c1b1c058ddf1394e5146 /comm/OLD/Event.cc | |
parent | bdf4adcfb3fe40dc16f8dadde4da416cc8a5b8d2 (diff) | |
download | ivy-league-8ad2474d8a297c4c85f715f3577c0609628ebce5.zip ivy-league-8ad2474d8a297c4c85f715f3577c0609628ebce5.tar.gz ivy-league-8ad2474d8a297c4c85f715f3577c0609628ebce5.tar.bz2 ivy-league-8ad2474d8a297c4c85f715f3577c0609628ebce5.tar.xz |
Now derive from UchMessage
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 ()); +} + + |