qLibc通用的 C/C++ 库
qLibc 项目的目的就是提供一个通用的 C/C++ 库,包括所有种类的容器和常用工具函数。
特性:
- General Containers.
- List — Doubly Linked List.
- List Table — KEY/VALUE paired table implemented on linked-list.
- Hash Table — Hash based KEY/VALUE paired table.
- Static Hash Table — Static(array/mmapped/shared) memory based KEY/VALUE paired table.
- Vector — implements a growable array of elements.
- Queue — FIFO(First In First Out) implementation.
- Stack — LIFO(Last In First Out) implementation.
- General utilities.
- Extensions.
示例代码:
// create a hash-table with hash range 100. // Hash range does NOT mean maximum number of elements. Refer API doc. qhashtbl_t *tbl = qhashtbl(100); // add an element which key name is "score". int x = 12345; tbl->put(tbl, "score", &x, sizeof(int)); // get the value of the element. int *px = tbl->get(tbl, "score", NULL, true); if(px != NULL) { printf("%d\n", *px); free(px); } // release table tbl->free(tbl);
评论
Fiberized.IO通用C++网络库
Fiberized.IO是一个基于Fiber和AsyncI/O的通用C++网络库。在上层,Fiberized.IO提供一个兼容C++11thread和iostream的“阻塞式”API;在底层,Fib
Fiberized.IO通用C++网络库
0
gear-lib通用的 C 基础库
GearLib是一组面向IOT及网络流媒体开发的C基础库,接口简洁易用,适用于物联网嵌入式设备端的开发,如IOT采集传感器,视频监控,设备端网络直播等场景。 GearLib库内容包括:网络库 l
gear-lib通用的 C 基础库
0
HIDAPIHID 设备的 C 语言通用库
HIDAPI是一个USB和蓝牙的hid类设备在Windows、Linux、FreeBSD和Mac的C语言通用库,使用HIDAPI可以在Windows、Linux、FreeBSD和Mac平台进行USB和
HIDAPIHID 设备的 C 语言通用库
0