encode static method

void encode(
  1. XdrDataOutputStream stream,
  2. XdrPathPaymentStrictSendOp encodedPathPaymentOp
)

Implementation

static void encode(XdrDataOutputStream stream,
    XdrPathPaymentStrictSendOp encodedPathPaymentOp) {
  XdrAsset.encode(stream, encodedPathPaymentOp.sendAsset);
  XdrInt64.encode(stream, encodedPathPaymentOp.sendMax);
  XdrMuxedAccount.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]);
  }
}