oms_buffer_element_find()
Abstract
Searches for the specified element in the buffer. If found, returns the index and insertion time of the element in the buffer.
Syntax
oms_buffer_element_find (buffer_handle, element, insertion_time_ptr)
| Argument | Type | Description |
|---|---|---|
buffer_handle |
OmsT_Buffer_Handle |
buffer object to search for an element |
element |
void * |
element to search for in the buffer |
insertion_time_ptr |
double * |
time of insertion of the matched element, if found |
Return Type
int
Index of the matched element in the buffer if found, or OmsC_Buffer_Element_Not_Found.
Details
This function searches through the elements stored in the buffer for a match based on the element address. If a match is found, the index of the match is returned and insertion_time_ptr is filled in with the element insertion time. If no match is found, OmsC_Buffer_Element_Not_Found is returned and insertion_time_ptr is not filled in.