Esempio n. 1
0
        private void UpdatePayload(CoinStream stream)
        {
            MemoryStream ms    = new MemoryStream();
            var          seria = new CoinStream(ms, true);

            seria.CopyParameters(stream);
            ReadWritePayloadFields(seria);
            payload = new VarString(ms.ToArray());
        }
Esempio n. 2
0
        public override void ReadWriteCore(CoinStream stream)
        {
            stream.ReadWrite(ref payload);
            if (!stream.Serializing)
            {
                var payloadStream = new CoinStream(payload.GetString());
                payloadStream.CopyParameters(stream);

                ReadWritePayloadFields(payloadStream);
            }

            stream.ReadWrite(ref signature);
        }