🎁 A glib-like multi-platform c library
tb_stream_init_from_sock_ref()
to open a given socket as streamtb_stream_init_from_sock_ref()
接口去直接打开一个socket作为stream去读取数据。tb_vsnprintf
overflowtb_vsnprintf
栈溢出问题--smallest=y|n
option to --small=y|n
tb_file_copy
--smallest=y|n
选项到--small=y|n
stat64
支持大文件信息获取tb_file_copy
,更加快速的文件copy,并且修复copy后文件权限丢失问题__tb_thread_local__
keyword macro--micro=y|n
option to compiling micro library (~64K) for the embed systemtb_addrinfo_addr
and tb_addrinfo_name
interfaces__tb_thread_local__
关键字宏--micro=y|n
选项,实现极小编译,针对嵌入式平台,编译tbox微内核(~64K)tb_addrinfo_addr
and tb_addrinfo_name
接口__tb_deprecated__
keyword and option__tb_deprecated__
关键字以及配置选项static_pool
moduletb_memmem
interfacetb_init
api and support allocator argumentsassert
and will abort for debug modestatic_pool
来维护整块buffer的内存分配,适合局部管理部分内存,pool虽然也能维护,但是底层基于large_pool
,比较重量级,适合全局管理内存tb_memmem
接口tb_init
接口,增加allocator自定义内存分配器参数,实现用户的侵入式内存管理