Beispiel #1
0
        public byte[] Serialize(ushort protocolVersion, object obj)
        {
            var buffer = _adapter.ConvertTo(obj);

            if (_reverse)
            {
                Array.Reverse(buffer);
            }
            return(buffer);
        }