bsearch method

Pointer<Void> bsearch(
  1. Pointer<Void> _Key,
  2. Pointer<Void> _Base,
  3. int _NumOfElements,
  4. int _SizeOfElements,
  5. Pointer<NativeFunction<_CoreCrtNonSecureSearchSortCompareFunction>> _CompareFunction,
)

Implementation

ffi.Pointer<ffi.Void> bsearch(
  ffi.Pointer<ffi.Void> _Key,
  ffi.Pointer<ffi.Void> _Base,
  int _NumOfElements,
  int _SizeOfElements,
  ffi.Pointer<ffi.NativeFunction<_CoreCrtNonSecureSearchSortCompareFunction>>
      _CompareFunction,
) {
  return (_bsearch ??=
      _dylib.lookupFunction<_c_bsearch, _dart_bsearch>('bsearch'))(
    _Key,
    _Base,
    _NumOfElements,
    _SizeOfElements,
    _CompareFunction,
  );
}