예제 #1
0
 public static Event DeserializeFromBuffer(BitBuffer buffer)
 {
     return((Event)buffer.GetBits(0, EventMaxValue));
 }
예제 #2
0
 public static void SerializeIntoBuffer(BitBuffer buffer, Event eventType)
 {
     buffer.PutBits((int)eventType, 0, EventMaxValue);
 }