Search Manager
In many cases, there will be a need to search one element from a large predefined array, such as getting an element from a lookup table. To simplify such implementation, RAPIDSEA provides a search manager that can be used to find elements from an array quickly using different algorithms such a linear or binary searches.
To use the search manager, use the rs_search_mgr_init function to set the type of search algorithm and the comparison mechanism to be used to find if it is a match. Then configure the lookup array using the rs_search_mgr_config_buffer by indicting the starting address of the array, number of elements in it, size of each element in the array and finally the offset of the member to be compared inside each element. Once this is done, rs_search_mgr_get_element can be used to find the element by passing the address to the search value against which the element is returned, if found.
Search Manager Header
Documentation from the relevant header as follows:
Warning
doxygenfile: Cannot find file “rs_search_mgr.h