2 个仓库
Length-tracked memory buffers that allow null bytes within strings and support dynamic resizing.
Distinct from Null-Terminated String Buffers: Distinct from null-terminated buffers as it tracks length explicitly to support embedded null bytes.
Explore 2 awesome GitHub repositories matching operating systems & systems programming · Binary-Safe String Buffers. Refine with filters or upvote what's useful.
Hiredis is a minimalistic C client library designed to send commands and receive responses from Redis servers using a binary-safe protocol. It functions as a core toolkit providing a Redis protocol parser, a secure connector, and both synchronous and asynchronous driver interfaces. The library distinguishes itself through a decoupled protocol parser that converts raw byte streams into structured data objects independently of the network transport layer. It supports high-performance pipelining to batch multiple commands into a single network round-trip and provides a secure networking layer fo
Implements length-tracked buffers to support binary-safe strings containing null bytes.
sds 是一个 C 语言动态字符串库,为堆分配的字符串提供了内存管理封装。它通过显式跟踪字符串长度来实现二进制安全存储,从而允许库处理数据中的空字符。 该库的内存架构支持可互换的分配和释放函数指针,便于集成自定义内存管理器。它利用存储在头部的长度信息实现常数时间的长度获取,并维护以空字符结尾的缓冲区填充,以确保与标准 C 字符串函数的兼容性。 该工具包涵盖了广泛的字符串操作功能,包括拼接、分词、连接和范围提取。它还提供了用于原地缓冲区修改的实用程序(如修剪和裁剪),并包含优于标准打印函数的优化字符串格式化方案。
Provides a binary-safe string implementation that supports null bytes and special characters in C.