Exemplo n.º 1
0
                public static AccountEntryV1 Decode(XdrDataInputStream stream)
                {
                    AccountEntryV1 decodedAccountEntryV1 = new AccountEntryV1();

                    decodedAccountEntryV1.Liabilities = Liabilities.Decode(stream);
                    decodedAccountEntryV1.Ext         = AccountEntryV1Ext.Decode(stream);
                    return(decodedAccountEntryV1);
                }
Exemplo n.º 2
0
            public static void Encode(XdrDataOutputStream stream, AccountEntryExt encodedAccountEntryExt)
            {
                stream.WriteInt((int)encodedAccountEntryExt.Discriminant);
                switch (encodedAccountEntryExt.Discriminant)
                {
                case 0:
                    break;

                case 1:
                    AccountEntryV1.Encode(stream, encodedAccountEntryExt.V1);
                    break;
                }
            }
Exemplo n.º 3
0
            public static AccountEntryExt Decode(XdrDataInputStream stream)
            {
                AccountEntryExt decodedAccountEntryExt = new AccountEntryExt();
                int             discriminant           = stream.ReadInt();

                decodedAccountEntryExt.Discriminant = discriminant;
                switch (decodedAccountEntryExt.Discriminant)
                {
                case 0:
                    break;

                case 1:
                    decodedAccountEntryExt.V1 = AccountEntryV1.Decode(stream);
                    break;
                }
                return(decodedAccountEntryExt);
            }
Exemplo n.º 4
0
 public static void Encode(XdrDataOutputStream stream, AccountEntryV1 encodedAccountEntryV1)
 {
     Liabilities.Encode(stream, encodedAccountEntryV1.Liabilities);
     AccountEntryV1Ext.Encode(stream, encodedAccountEntryV1.Ext);
 }