public static void Encode(XdrDataOutputStream stream, LedgerEntryExt encodedLedgerEntryExt) { stream.WriteInt((int)encodedLedgerEntryExt.Discriminant); switch (encodedLedgerEntryExt.Discriminant) { case 0: break; } }
public static LedgerEntry Decode(XdrDataInputStream stream) { LedgerEntry decodedLedgerEntry = new LedgerEntry(); decodedLedgerEntry.LastModifiedLedgerSeq = Uint32.Decode(stream); decodedLedgerEntry.Data = LedgerEntryData.Decode(stream); decodedLedgerEntry.Ext = LedgerEntryExt.Decode(stream); return(decodedLedgerEntry); }
public static void Encode(IByteWriter stream, LedgerEntryExt encodedLedgerEntryExt) { XdrEncoding.EncodeInt32(encodedLedgerEntryExt.Discriminant, stream); switch (encodedLedgerEntryExt.Discriminant) { case 0: break; } }
public static LedgerEntryExt Decode(IByteReader stream) { LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt(); decodedLedgerEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream); switch (decodedLedgerEntryExt.Discriminant) { case 0: break; } return(decodedLedgerEntryExt); }
public static LedgerEntryExt Decode(XdrDataInputStream stream) { LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt(); int discriminant = stream.ReadInt(); decodedLedgerEntryExt.Discriminant = discriminant; switch (decodedLedgerEntryExt.Discriminant) { case 0: break; } return(decodedLedgerEntryExt); }
public static void Encode(XdrDataOutputStream stream, LedgerEntry encodedLedgerEntry) { Uint32.Encode(stream, encodedLedgerEntry.LastModifiedLedgerSeq); LedgerEntryData.Encode(stream, encodedLedgerEntry.Data); LedgerEntryExt.Encode(stream, encodedLedgerEntry.Ext); }
public static LedgerEntryExt Decode(IByteReader stream) { LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt(); decodedLedgerEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream); switch (decodedLedgerEntryExt.Discriminant) { case 0: break; } return decodedLedgerEntryExt; }
public static void Encode(IByteWriter stream, LedgerEntry encodedLedgerEntry) { Uint32.Encode(stream, encodedLedgerEntry.LastModifiedLedgerSeq); LedgerEntryData.Encode(stream, encodedLedgerEntry.Data); LedgerEntryExt.Encode(stream, encodedLedgerEntry.Ext); }