轻量级自描述缓冲区
来源:互联网 发布:淘宝网代购服务店加盟 编辑:程序博客网 时间:2024/05/22 10:47
对上篇博文中提到的缓冲区模板类型做一些补充说明。
下面这段是笔者的源码注释,是对上篇博文有关该缓冲区模板的重要补充说明。
烽驿2009开源实时通信平台 源码位置:svn checkout http://fy2009.googlecode.com/svn/trunk/ fy2009-read-only
/*[tip] buffer type template
*[desc]
* buffer is very often used in communication software, plain c char* isn't good enough to used as out parameter
* (without length info and indicator to tell where the buffer is allocated(stack or heap). std::string or
* std::vector<char> can meet above need, unfortunatedly, they often has an expensive constructor.
* for performance of basic service, below buffer type is perferred to be used in basic service.
* if buffer is allocated on heap, its lifecycle will be controlled by this class
*
*[memo]
* spending of a million constructions:
* std::vector<char>: 80ms; std::string: 150ms; this type: 20ms--it's excellent,2008-4-7
*[history]
* initialize: 2006-7-28
* revise 2008-4-7
*/
- 轻量级自描述缓冲区
- 文件描述符与缓冲区
- spring自带的轻量级定时任务
- jdk自带轻量级http server例子
- 自编STM32轻量级操作系统(五)------互斥量
- 寻找中文自描述句子
- 自定义SDWebImage图片缓冲区自清理机制
- FILE结构体(文件描述符及缓冲区)
- 轻量级
- .NET Attribute的自描述机制 一
- .NET Attribute的自描述机制 二
- .NET Attribute的自描述机制
- JS自写带描述标签云
- JDK自带的轻量级HTTP Server进行加载。
- 自编STM32轻量级操作系统(一)------操作系统实现
- 自编STM32轻量级操作系统(二)------任务调度
- 自编STM32轻量级操作系统(三)------内存管理
- 自编STM32轻量级操作系统(四)------信号量的实现
- 别让你的技巧胜过你的品德
- 甲骨文并购Sun改写IT产业格局
- JSP使用URLRewirte实现url地址伪静态化
- 教你读懂电脑系统
- unicode,ansi,utf-8,unicode,big5有什么区别
- 轻量级自描述缓冲区
- 独立软件验证和确认(ISVV)简介
- 职场赢得好人脉六字黄金诀
- Flash 3D引擎(Sandy3D)应用指南 4a——使用灯光
- 免费下载Windows 7(申请序列号)
- 感想
- 与高科技同行
- c++虚函数的原理
- 为什么opencv的canny函数检测边缘的效果和matlab的不同