Esempio n. 1
0
 public static void Encode(XdrDataOutputStream stream, LedgerEntryExt encodedLedgerEntryExt)
 {
     stream.WriteInt((int)encodedLedgerEntryExt.Discriminant);
     switch (encodedLedgerEntryExt.Discriminant)
     {
     case 0:
         break;
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public static void Encode(IByteWriter stream, LedgerEntryExt encodedLedgerEntryExt)
 {
     XdrEncoding.EncodeInt32(encodedLedgerEntryExt.Discriminant, stream);
     switch (encodedLedgerEntryExt.Discriminant)
     {
     case 0:
         break;
     }
 }
Esempio n. 4
0
            public static LedgerEntryExt Decode(IByteReader stream)
            {
                LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt();

                decodedLedgerEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream);
                switch (decodedLedgerEntryExt.Discriminant)
                {
                case 0:
                    break;
                }
                return(decodedLedgerEntryExt);
            }
Esempio n. 5
0
            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);
            }
Esempio n. 6
0
 public static void Encode(XdrDataOutputStream stream, LedgerEntry encodedLedgerEntry)
 {
     Uint32.Encode(stream, encodedLedgerEntry.LastModifiedLedgerSeq);
     LedgerEntryData.Encode(stream, encodedLedgerEntry.Data);
     LedgerEntryExt.Encode(stream, encodedLedgerEntry.Ext);
 }
Esempio n. 7
0
 public static void Encode(IByteWriter stream, LedgerEntryExt encodedLedgerEntryExt)
 {
     XdrEncoding.EncodeInt32(encodedLedgerEntryExt.Discriminant, stream);
     switch (encodedLedgerEntryExt.Discriminant) {
     case 0:
     break;
     }
 }
Esempio n. 8
0
 public static LedgerEntryExt Decode(IByteReader stream)
 {
     LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt();
     decodedLedgerEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream);
     switch (decodedLedgerEntryExt.Discriminant) {
     case 0:
     break;
     }
       return decodedLedgerEntryExt;
 }
Esempio n. 9
0
 public static void Encode(IByteWriter stream, LedgerEntry encodedLedgerEntry)
 {
     Uint32.Encode(stream, encodedLedgerEntry.LastModifiedLedgerSeq);
     LedgerEntryData.Encode(stream, encodedLedgerEntry.Data);
     LedgerEntryExt.Encode(stream, encodedLedgerEntry.Ext);
 }