public void WriteTo(ref StWriter writer) { writer.WriteStartObject(StObjectFieldCode.SignerEntry); writer.WriteUInt16(StUInt16FieldCode.SignerWeight, SignerWeight); writer.WriteAccount(StAccountIDFieldCode.Account, Account); writer.WriteEndObject(); }
internal void WriteTo(ref StWriter writer) { writer.WriteStartObject(StObjectFieldCode.Signer); writer.WriteBlob(StBlobFieldCode.SigningPubKey, SigningPubKey.Span); writer.WriteBlob(StBlobFieldCode.TxnSignature, TxnSignature.Span); writer.WriteAccount(StAccountIDFieldCode.Account, Account); writer.WriteEndObject(); }
internal void WriteTo(ref StWriter writer) { writer.WriteStartObject(StObjectFieldCode.Memo); Span <byte> bytes = stackalloc byte[ Math.Max(MemoFormat.Length, MemoType.Length)]; System.Text.Encoding.ASCII.GetBytes(MemoType, bytes); writer.WriteBlob(StBlobFieldCode.MemoType, bytes.Slice(0, MemoType.Length)); writer.WriteBlob(StBlobFieldCode.MemoData, MemoData.Span); System.Text.Encoding.ASCII.GetBytes(MemoFormat, bytes); writer.WriteBlob(StBlobFieldCode.MemoFormat, bytes.Slice(0, MemoFormat.Length)); writer.WriteEndObject(); }