public static LedgerEntryExtensionV1 Decode(XdrDataInputStream stream) { LedgerEntryExtensionV1 decodedLedgerEntryExtensionV1 = new LedgerEntryExtensionV1(); decodedLedgerEntryExtensionV1.SponsoringID = SponsorshipDescriptor.Decode(stream); decodedLedgerEntryExtensionV1.Ext = LedgerEntryExtensionV1Ext.Decode(stream); return(decodedLedgerEntryExtensionV1); }
public static AccountEntryExtensionV2 Decode(XdrDataInputStream stream) { AccountEntryExtensionV2 decodedAccountEntryExtensionV2 = new AccountEntryExtensionV2(); decodedAccountEntryExtensionV2.NumSponsored = Uint32.Decode(stream); decodedAccountEntryExtensionV2.NumSponsoring = Uint32.Decode(stream); int signerSponsoringIDssize = stream.ReadInt(); decodedAccountEntryExtensionV2.SignerSponsoringIDs = new SponsorshipDescriptor[signerSponsoringIDssize]; for (int i = 0; i < signerSponsoringIDssize; i++) { decodedAccountEntryExtensionV2.SignerSponsoringIDs[i] = SponsorshipDescriptor.Decode(stream); } decodedAccountEntryExtensionV2.Ext = AccountEntryExtensionV2Ext.Decode(stream); return(decodedAccountEntryExtensionV2); }