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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com