AceT_Decoder_Delete_Proc
摘要
回调:用于销毁由 load_proc 分配的内存。
语法
<delete_proc> (state_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
state_ptr |
void * |
状态信息。 |
返回类型
void
无返回值。
头文件
ace_client_api.h
示例
void
op_ica_ace_decoder_delete (void * state_ptr)
{
OpT_Ica_Decoder_State * decoder_state_ptr;
FIN (op_ica_ace_decoder_load);
if (state_ptr)
{
decoder_state_ptr = (OpT_Ica_Decoder_State *)state_ptr;
// Destroy the "deep" items
op_ica_connections_destroy (decoder_state_ptr);
// Destroy the state itself
prg_mem_free (decoder_state_ptr);
}
FOUT;
}
详情
当 Transaction Analyzer 关闭时会调用该回调。如果客户端在 AceT_Decoder_Plugin_Load_Proc 中分配了任何内存,应当在该回调中释放这些内存。