public static PathPaymentOp Decode(XdrDataInputStream stream) { var decodedPathPaymentOp = new PathPaymentOp(); decodedPathPaymentOp.SendAsset = Asset.Decode(stream); decodedPathPaymentOp.SendMax = Int64.Decode(stream); decodedPathPaymentOp.Destination = AccountID.Decode(stream); decodedPathPaymentOp.DestAsset = Asset.Decode(stream); decodedPathPaymentOp.DestAmount = Int64.Decode(stream); var pathsize = stream.ReadInt(); decodedPathPaymentOp.Path = new Asset[pathsize]; for (var i = 0; i < pathsize; i++) { decodedPathPaymentOp.Path[i] = Asset.Decode(stream); } return(decodedPathPaymentOp); }
public static PathPaymentOp Decode(IByteReader stream) { PathPaymentOp decodedPathPaymentOp = new PathPaymentOp(); decodedPathPaymentOp.SendAsset = Asset.Decode(stream); decodedPathPaymentOp.SendMax = Int64.Decode(stream); decodedPathPaymentOp.Destination = AccountID.Decode(stream); decodedPathPaymentOp.DestAsset = Asset.Decode(stream); decodedPathPaymentOp.DestAmount = Int64.Decode(stream); int pathsize = XdrEncoding.DecodeInt32(stream); decodedPathPaymentOp.Path = new Asset[pathsize]; for (int i = 0; i < pathsize; i++) { decodedPathPaymentOp.Path[i] = Asset.Decode(stream); } return(decodedPathPaymentOp); }
public static PathPaymentStrictSendOp Decode(XdrDataInputStream stream) { PathPaymentStrictSendOp decodedPathPaymentStrictSendOp = new PathPaymentStrictSendOp(); decodedPathPaymentStrictSendOp.SendAsset = Asset.Decode(stream); decodedPathPaymentStrictSendOp.SendAmount = Int64.Decode(stream); decodedPathPaymentStrictSendOp.Destination = MuxedAccount.Decode(stream); decodedPathPaymentStrictSendOp.DestAsset = Asset.Decode(stream); decodedPathPaymentStrictSendOp.DestMin = Int64.Decode(stream); int pathsize = stream.ReadInt(); decodedPathPaymentStrictSendOp.Path = new Asset[pathsize]; for (int i = 0; i < pathsize; i++) { decodedPathPaymentStrictSendOp.Path[i] = Asset.Decode(stream); } return(decodedPathPaymentStrictSendOp); }