public static TrustLineEntryV1 Decode(XdrDataInputStream stream)
 {
     TrustLineEntryV1 decodedTrustLineEntryV1 = new TrustLineEntryV1();
     decodedTrustLineEntryV1.Liabilities = Liabilities.Decode(stream);
     decodedTrustLineEntryV1.Ext = TrustLineEntryV1Ext.Decode(stream);
     return decodedTrustLineEntryV1;
 }
 public static void Encode(XdrDataOutputStream stream, TrustLineEntryExt encodedTrustLineEntryExt)
 {
     stream.WriteInt((int)encodedTrustLineEntryExt.Discriminant);
     switch (encodedTrustLineEntryExt.Discriminant)
     {
         case 0:
             break;
         case 1:
             TrustLineEntryV1.Encode(stream, encodedTrustLineEntryExt.V1);
             break;
     }
 }
 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;
 }
Exemplo n.º 4
0
 public static void Encode(XdrDataOutputStream stream, TrustLineEntryV1 encodedTrustLineEntryV1)
 {
     Liabilities.Encode(stream, encodedTrustLineEntryV1.Liabilities);
     TrustLineEntryV1Ext.Encode(stream, encodedTrustLineEntryV1.Ext);
 }