encode method
Implementation
static void encode(
XdrDataOutputStream stream, XdrPathPaymentOp encodedPathPaymentOp) {
XdrAsset.encode(stream, encodedPathPaymentOp.sendAsset);
XdrInt64.encode(stream, encodedPathPaymentOp.sendMax);
XdrAccountID.encode(stream, encodedPathPaymentOp.destination);
XdrAsset.encode(stream, encodedPathPaymentOp.destAsset);
XdrInt64.encode(stream, encodedPathPaymentOp.destAmount);
int pathsize = encodedPathPaymentOp.path.length;
stream.writeInt(pathsize);
for (int i = 0; i < pathsize; i++) {
XdrAsset.encode(stream, encodedPathPaymentOp.path[i]);
}
}