public static void Encode(XdrDataOutputStream stream, AccountEntryExtensionV2 encodedAccountEntryExtensionV2) { Uint32.Encode(stream, encodedAccountEntryExtensionV2.NumSponsored); Uint32.Encode(stream, encodedAccountEntryExtensionV2.NumSponsoring); int signerSponsoringIDssize = encodedAccountEntryExtensionV2.SignerSponsoringIDs.Length; stream.WriteInt(signerSponsoringIDssize); for (int i = 0; i < signerSponsoringIDssize; i++) { SponsorshipDescriptor.Encode(stream, encodedAccountEntryExtensionV2.SignerSponsoringIDs[i]); } AccountEntryExtensionV2Ext.Encode(stream, encodedAccountEntryExtensionV2.Ext); }
public static void Encode(XdrDataOutputStream stream, LedgerEntryExtensionV1 encodedLedgerEntryExtensionV1) { SponsorshipDescriptor.Encode(stream, encodedLedgerEntryExtensionV1.SponsoringID); LedgerEntryExtensionV1Ext.Encode(stream, encodedLedgerEntryExtensionV1.Ext); }