Esempio n. 1
0
 public static MessageData DecodeMessage(ZMessage message) =>
 new MessageData
 {
     Identity = message.Pop().ReadInt32(),
     Type     = (MessageType)message.Pop().ReadAsByte(),
     Data     = message.Select((frame) => frame.Read()).ToArray()
 };