Пример #1
0
        protected DataPacket[] Decode(BinaryDataPacket[] data)
        {
            if (data == null)
            {
                return(null);
            }

            var decoded = new DataPacket[data.Length];

            for (int i = 0; i < data.Length; ++i)
            {
                decoded[i] = new DataPacket(data[i].Header, _byteEncoder.Decode(data[i].Body));
            }

            return(decoded);
        }
Пример #2
0
 protected object Decode(byte[] data)
 {
     return(_byteEncoder.Decode(data));
 }