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