@spiceErrorCheck<EOL>def bsrchi(value, ndim, array):
value = ctypes.c_int(value)<EOL>ndim = ctypes.c_int(ndim)<EOL>array = stypes.toIntVector(array)<EOL>return libspice.bsrchi_c(value, ndim, array)<EOL>
Do a binary search for a key value within an integer array,
assumed to be in increasing order. Return the index of the
matching array entry, or -1 if the key value is not found.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bsrchi_c.html

:param value: Value to find in array.
:type value: int
:param ndim: Dimension of array.
:type ndim: int
:param array: Array to be searched.
:type array: Array of ints
:return: index
:rtype: int