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