public static void Encode(IByteWriter stream, TrustLineEntryExt encodedTrustLineEntryExt) {
 XdrEncoding.EncodeInt32(encodedTrustLineEntryExt.Discriminant, stream);
 switch (encodedTrustLineEntryExt.Discriminant) {
 case 0:
 break;
 }
 }
Example #2
0
 public static void Encode(IByteWriter stream, TrustLineEntryExt encodedTrustLineEntryExt)
 {
     XdrEncoding.EncodeInt32(encodedTrustLineEntryExt.Discriminant, stream);
     switch (encodedTrustLineEntryExt.Discriminant)
     {
     case 0:
         break;
     }
 }
Example #3
0
 public static void Encode(IByteWriter stream, TrustLineEntry encodedTrustLineEntry)
 {
     AccountID.Encode(stream, encodedTrustLineEntry.AccountID);
     Asset.Encode(stream, encodedTrustLineEntry.Asset);
     Int64.Encode(stream, encodedTrustLineEntry.Balance);
     Int64.Encode(stream, encodedTrustLineEntry.Limit);
     Uint32.Encode(stream, encodedTrustLineEntry.Flags);
     TrustLineEntryExt.Encode(stream, encodedTrustLineEntry.Ext);
 }
Example #4
0
 public static void Encode(XdrDataOutputStream stream, TrustLineEntryExt encodedTrustLineEntryExt)
 {
     stream.WriteInt(encodedTrustLineEntryExt.Discriminant);
     switch (encodedTrustLineEntryExt.Discriminant)
     {
     case 0:
         break;
     }
 }
 public static TrustLineEntryExt Decode(IByteReader stream) {
   TrustLineEntryExt decodedTrustLineEntryExt = new TrustLineEntryExt();
 decodedTrustLineEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream);
 switch (decodedTrustLineEntryExt.Discriminant) {
 case 0:
 break;
 }
   return decodedTrustLineEntryExt;
 }
 public static TrustLineEntry Decode(XdrDataInputStream stream)
 {
     TrustLineEntry decodedTrustLineEntry = new TrustLineEntry();
     decodedTrustLineEntry.AccountID = AccountID.Decode(stream);
     decodedTrustLineEntry.Asset = Asset.Decode(stream);
     decodedTrustLineEntry.Balance = Int64.Decode(stream);
     decodedTrustLineEntry.Limit = Int64.Decode(stream);
     decodedTrustLineEntry.Flags = Uint32.Decode(stream);
     decodedTrustLineEntry.Ext = TrustLineEntryExt.Decode(stream);
     return decodedTrustLineEntry;
 }
Example #7
0
            public static TrustLineEntryExt Decode(IByteReader stream)
            {
                TrustLineEntryExt decodedTrustLineEntryExt = new TrustLineEntryExt();

                decodedTrustLineEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream);
                switch (decodedTrustLineEntryExt.Discriminant)
                {
                case 0:
                    break;
                }
                return(decodedTrustLineEntryExt);
            }
Example #8
0
        public static TrustLineEntry Decode(IByteReader stream)
        {
            TrustLineEntry decodedTrustLineEntry = new TrustLineEntry();

            decodedTrustLineEntry.AccountID = AccountID.Decode(stream);
            decodedTrustLineEntry.Asset     = Asset.Decode(stream);
            decodedTrustLineEntry.Balance   = Int64.Decode(stream);
            decodedTrustLineEntry.Limit     = Int64.Decode(stream);
            decodedTrustLineEntry.Flags     = Uint32.Decode(stream);
            decodedTrustLineEntry.Ext       = TrustLineEntryExt.Decode(stream);
            return(decodedTrustLineEntry);
        }
Example #9
0
            public static TrustLineEntryExt Decode(XdrDataInputStream stream)
            {
                var decodedTrustLineEntryExt = new TrustLineEntryExt();
                var discriminant             = stream.ReadInt();

                decodedTrustLineEntryExt.Discriminant = discriminant;
                switch (decodedTrustLineEntryExt.Discriminant)
                {
                case 0:
                    break;
                }
                return(decodedTrustLineEntryExt);
            }
 public static TrustLineEntryExt Decode(XdrDataInputStream stream)
 {
     TrustLineEntryExt decodedTrustLineEntryExt = new TrustLineEntryExt();
     int discriminant = stream.ReadInt();
     decodedTrustLineEntryExt.Discriminant = discriminant;
     switch (decodedTrustLineEntryExt.Discriminant)
     {
         case 0:
             break;
         case 1:
             decodedTrustLineEntryExt.V1 = TrustLineEntryV1.Decode(stream);
             break;
     }
     return decodedTrustLineEntryExt;
 }