public void Write(IBridgeSerializer bridgeSerializer) { var packet = new BridgeStream(); bridgeSerializer.Write(packet); Write(packet); }
public void Write(BridgeStream bridgeStream) { if (bridgeStream == null) { Write(0); return; } var data = bridgeStream.Encode(); Write(data); }
public BridgeStream ReadStream() { var packet = new BridgeStream(ReadByteArray()); return(packet); }