Exemplo n.º 1
0
        public byte[] GetResponseBytes()
        {
            var hdrBytes = respHdr.GetHeaderBytes();

            if (data != null)
            {
                var resBytes = new byte[hdrBytes.Length + data.Length];
                hdrBytes.CopyTo(resBytes, 0);
                data.CopyTo(resBytes, hdrBytes.Length);
                return(resBytes);
            }

            return(hdrBytes);
        }