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); }
protected object Decode(byte[] data) { return(_byteEncoder.Decode(data)); }