encode method Null safety

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

Implementation

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