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()); }
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); }