예제 #1
0
            public static AssetAlphaNum12 Decode(XdrDataInputStream stream)
            {
                AssetAlphaNum12 decodedAssetAlphaNum12 = new AssetAlphaNum12();

                decodedAssetAlphaNum12.AssetCode = AssetCode12.Decode(stream);
                decodedAssetAlphaNum12.Issuer    = AccountID.Decode(stream);
                return(decodedAssetAlphaNum12);
            }
예제 #2
0
        public static AssetCode12 Decode(XdrDataInputStream stream)
        {
            AssetCode12 decodedAssetCode12 = new AssetCode12();
            int         AssetCode12size    = 12;

            decodedAssetCode12.InnerValue = new byte[AssetCode12size];
            stream.Read(decodedAssetCode12.InnerValue, 0, AssetCode12size);
            return(decodedAssetCode12);
        }
예제 #3
0
 public static void Encode(XdrDataOutputStream stream, AssetAlphaNum12 encodedAssetAlphaNum12)
 {
     AssetCode12.Encode(stream, encodedAssetAlphaNum12.AssetCode);
     AccountID.Encode(stream, encodedAssetAlphaNum12.Issuer);
 }
예제 #4
0
        public static void Encode(XdrDataOutputStream stream, AssetCode12 encodedAssetCode12)
        {
            int AssetCode12size = encodedAssetCode12.InnerValue.Length;

            stream.Write(encodedAssetCode12.InnerValue, 0, AssetCode12size);
        }