Exemple #1
0
 public static void Encode(XdrDataOutputStream stream, LedgerEntryExt encodedLedgerEntryExt)
 {
     stream.WriteInt((int)encodedLedgerEntryExt.Discriminant);
     switch (encodedLedgerEntryExt.Discriminant)
     {
     case 0:
         break;
     }
 }
Exemple #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);
        }
Exemple #3
0
 public static void Encode(IByteWriter stream, LedgerEntryExt encodedLedgerEntryExt)
 {
     XdrEncoding.EncodeInt32(encodedLedgerEntryExt.Discriminant, stream);
     switch (encodedLedgerEntryExt.Discriminant)
     {
     case 0:
         break;
     }
 }
Exemple #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);
            }
Exemple #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);
            }
Exemple #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);
 }
 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;
 }
Exemple #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);
 }