Пример #1
0
        public void Write(IBridgeSerializer bridgeSerializer)
        {
            var packet = new BridgeStream();

            bridgeSerializer.Write(packet);
            Write(packet);
        }
Пример #2
0
        public void Write(BridgeStream bridgeStream)
        {
            if (bridgeStream == null)
            {
                Write(0);
                return;
            }

            var data = bridgeStream.Encode();

            Write(data);
        }
Пример #3
0
        public BridgeStream ReadStream()
        {
            var packet = new BridgeStream(ReadByteArray());

            return(packet);
        }