public static LedgerEntryExtensionV1 Decode(XdrDataInputStream stream) { LedgerEntryExtensionV1 decodedLedgerEntryExtensionV1 = new LedgerEntryExtensionV1(); decodedLedgerEntryExtensionV1.SponsoringID = SponsorshipDescriptor.Decode(stream); decodedLedgerEntryExtensionV1.Ext = LedgerEntryExtensionV1Ext.Decode(stream); return(decodedLedgerEntryExtensionV1); }
public static void Encode(XdrDataOutputStream stream, LedgerEntryExt encodedLedgerEntryExt) { stream.WriteInt((int)encodedLedgerEntryExt.Discriminant); switch (encodedLedgerEntryExt.Discriminant) { case 0: break; case 1: LedgerEntryExtensionV1.Encode(stream, encodedLedgerEntryExt.V1); break; } }
public static LedgerEntryExt Decode(XdrDataInputStream stream) { LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt(); int discriminant = stream.ReadInt(); decodedLedgerEntryExt.Discriminant = discriminant; switch (decodedLedgerEntryExt.Discriminant) { case 0: break; case 1: decodedLedgerEntryExt.V1 = LedgerEntryExtensionV1.Decode(stream); break; } return(decodedLedgerEntryExt); }
public static void Encode(XdrDataOutputStream stream, LedgerEntryExtensionV1 encodedLedgerEntryExtensionV1) { SponsorshipDescriptor.Encode(stream, encodedLedgerEntryExtensionV1.SponsoringID); LedgerEntryExtensionV1Ext.Encode(stream, encodedLedgerEntryExtensionV1.Ext); }