encode static method

void encode(
  1. XdrDataOutputStream stream,
  2. XdrInvokeHostFunctionOp encoded
)

Implementation

static void encode(
    XdrDataOutputStream stream, XdrInvokeHostFunctionOp encoded) {
  XdrHostFunction.encode(stream, encoded.function);
  int authSize = encoded.auth.length;
  stream.writeInt(authSize);
  for (int i = 0; i < authSize; i++) {
    XdrSorobanAuthorizationEntry.encode(stream, encoded.auth[i]);
  }
}