⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmgrb_00.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/class/system/MemoryManager/mmgrb_00.cc// version: $Id: mmgrb_00.cc,v 1.2 2000/09/22 22:46:14 duncan Exp $//// isip include files//#include <Error.h>// special isip include files//#define ISIP_INTERNAL_USE_ONLY#include "MemoryManagerBase.h"// method: reallocate//// arguments://  void*** ptr: (input) pointer to pointer to array//  long& current_size: (input/output) size of the array//  long grow_size: (input) increment with which to grow the array//// return: a boolean value indicating status//// increase the size of this array of pointers//boolean MemoryManagerBase::reallocate(void*** ptr_a, long& current_size_a,				      long grow_size_a) {  // declare the new array space  //  void** new_ptr = (void**)isip_malloc(sizeof(void*) * (current_size_a +							grow_size_a));  // possibly copy over and delete old space  //  if (*ptr_a != (void*)NULL) {        // copy over the old entries    //    memcpy(new_ptr, *ptr_a, current_size_a * sizeof(void*));    // delete the old space    //    isip_free(*ptr_a);  }    // set the pointer to the new space  //  *ptr_a = new_ptr;  // increase the size  //  current_size_a += grow_size_a;    // exit gracefully  //  return true;}//-----------------------------------------------------------------------------//// we define non-integral constants in the default constructor//      //-----------------------------------------------------------------------------// instantiations of static class data//Integral::DEBUG MemoryManagerBase::debug_level_d = Integral::NONE;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -