reserveSearchMemory method Null safety

void reserveSearchMemory(
  1. int queries_count
)

Reserve memory for temporary buffers used while searching.
These temporary buffers require 8 * size() * queries_count bytes.
queries_count - Integer queries_count >= 0 - max size of the queries_templates vector passed to Recognizer::search at once to prepare the buffers for.

Implementation

void reserveSearchMemory(int queries_count) {
  var exception = _getException();
  final _reserveSearchMemory = _dll_handle.lookupFunction<_Templates_index_reserve_search_memory_c, _Templates_index_reserve_search_memory_dart>(
      _c_namespace + 'TemplatesIndex_reserveSearchMemory');

  _reserveSearchMemory(_impl, queries_count, exception);
  checkException(exception, _dll_handle);
}