public void MergeFrom(ProtoTransaction other) { if (other == null) { return; } if (other.Tranid.Length != 0) { Tranid = other.Tranid; } if (other.info_ != null) { if (info_ == null) { info_ = new global::LaksaCsharp.Proto.ProtoTransactionCoreInfo(); } Info.MergeFrom(other.Info); } if (other.signature_ != null) { if (signature_ == null) { signature_ = new global::LaksaCsharp.Proto.ByteArray(); } Signature.MergeFrom(other.Signature); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(ProtoTransactionCoreInfo other) { if (other == null) { return; } if (other.Version != 0) { Version = other.Version; } if (other.Nonce != 0UL) { Nonce = other.Nonce; } if (other.Toaddr.Length != 0) { Toaddr = other.Toaddr; } if (other.senderpubkey_ != null) { if (senderpubkey_ == null) { senderpubkey_ = new global::LaksaCsharp.Proto.ByteArray(); } Senderpubkey.MergeFrom(other.Senderpubkey); } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::LaksaCsharp.Proto.ByteArray(); } Amount.MergeFrom(other.Amount); } if (other.gasprice_ != null) { if (gasprice_ == null) { gasprice_ = new global::LaksaCsharp.Proto.ByteArray(); } Gasprice.MergeFrom(other.Gasprice); } if (other.Gaslimit != 0UL) { Gaslimit = other.Gaslimit; } if (other.Code.Length != 0) { Code = other.Code; } if (other.Data.Length != 0) { Data = other.Data; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Tranid = input.ReadBytes(); break; } case 18: { if (info_ == null) { info_ = new global::LaksaCsharp.Proto.ProtoTransactionCoreInfo(); } input.ReadMessage(info_); break; } case 26: { if (signature_ == null) { signature_ = new global::LaksaCsharp.Proto.ByteArray(); } input.ReadMessage(signature_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Version = input.ReadUInt32(); break; } case 16: { Nonce = input.ReadUInt64(); break; } case 26: { Toaddr = input.ReadBytes(); break; } case 34: { if (senderpubkey_ == null) { senderpubkey_ = new global::LaksaCsharp.Proto.ByteArray(); } input.ReadMessage(senderpubkey_); break; } case 42: { if (amount_ == null) { amount_ = new global::LaksaCsharp.Proto.ByteArray(); } input.ReadMessage(amount_); break; } case 50: { if (gasprice_ == null) { gasprice_ = new global::LaksaCsharp.Proto.ByteArray(); } input.ReadMessage(gasprice_); break; } case 56: { Gaslimit = input.ReadUInt64(); break; } case 66: { Code = input.ReadBytes(); break; } case 74: { Data = input.ReadBytes(); break; } } } }