Ets_Nt_Subnet_Slice_Insert()

注意: 需要 OPNET Development Kit

摘要

将一个已创建的切片插入子网。

语法

Ets_Nt_Subnet_Slice_Insert (subnet_hndl, EtsT_Slice_Handle slice_hndl, int insert_position)
参数 类型 说明
subnet_hndl EtsT_Obj_Handle 要插入切片的子网的句柄。
slice_hndl EtsT_Slice_Handle 要插入的切片的句柄。
insert_position int 在子网中插入切片的位置。

返回类型

EtsT_Compcode

若切片插入成功则返回 EtsC_Compcode_Success;若子网句柄或切片句柄无效则返回 EtsC_Compcode_Failure。

头文件

ets_api_nt.h

详情

要插入的切片必须事先使用 Ets_Slice_For_Shapeset_Create() 创建。插入位置从后向前编号,0 为最后面的位置。若 insert_position 小于 0,切片插入到位置 0。若 insert_position 大于插入前的切片栈大小,切片被追加到尾部(最靠前的位置)。若操作成功完成,指定的子网将接管切片的所有权。不要对此类切片调用 Ets_Slice_Destroy();必须先使用 Ets_Shapeset_Shape_Nth_Remove() 将其移除。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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