public static AssetAlphaNum12 Decode(XdrDataInputStream stream) { AssetAlphaNum12 decodedAssetAlphaNum12 = new AssetAlphaNum12(); decodedAssetAlphaNum12.AssetCode = AssetCode12.Decode(stream); decodedAssetAlphaNum12.Issuer = AccountID.Decode(stream); return(decodedAssetAlphaNum12); }
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); }
public static void Encode(XdrDataOutputStream stream, AssetAlphaNum12 encodedAssetAlphaNum12) { AssetCode12.Encode(stream, encodedAssetAlphaNum12.AssetCode); AccountID.Encode(stream, encodedAssetAlphaNum12.Issuer); }
public static void Encode(XdrDataOutputStream stream, AssetCode12 encodedAssetCode12) { int AssetCode12size = encodedAssetCode12.InnerValue.Length; stream.Write(encodedAssetCode12.InnerValue, 0, AssetCode12size); }