文件名称:BufferManage
介绍说明--下载内容均来自于网络,请自行研究使用
C 程序设计语言定义了两个标准的内存管理函数:malloc() 和 free()。C 程序员经常使用那些函数在运行时分配缓冲区,以便在函数之间传递数据。然而在许多场合下,您无法预先确定缓冲区所需的实际大小,这对于构造复杂的 C 程序来说,可能会导致几个根本性的问题。一种自我管理的抽象数据缓冲区概括地给出了抽象缓冲区的伪 C 代码实现,并详细介绍了采用这种机制的优点。-C programming language defines two standard memory management functions: malloc () and free (). C programmers frequently use those functions at run-time allocation of buffers in order to pass data between functions. However, in many occasions, you can not pre-determine the actual size of the buffer required, which for the complex structure of the C program, it may lead to several fundamental questions. A self-management, abstract data buffer generally gives the pseudo-C code for an abstract buffer implementation, and details the advantages of using this mechanism.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BufferManage.cpp