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 توفر غلافاً لإدارة الذاكرة للنصوص المخصصة في الذاكرة العشوائية (heap). تنفذ المكتبة تخزيناً آمناً ثنائياً (binary-safe) عبر تتبع أطوال النصوص بشكل صريح، مما يسمح للمكتبة بالتعامل مع الأحرف الفارغة (null characters) داخل البيانات. تتميز المكتبة ببنية ذاكرة تستخدم مؤشرات دوال قابلة للتبديل للتخصيص والتحرير، مما يتيح دمج مديرات ذاكرة مخصصة. كما تستخدم تتبع الطول المخزن في الترويسة (header) لتوفير استرجاع للطول في زمن ثابت، وتحافظ على حشوة (padding) للنصوص المنتهية بـ null لضمان التوافق مع دوال النصوص القياسية في C. تغطي مجموعة الأدوات نطاقاً واسعاً من قدرات معالجة النصوص، بما في ذلك الربط، والتقسيم إلى رموز (tokenization)، والدمج، واستخراج النطاقات. كما توفر أدوات مساعدة لتعديل المخزن المؤقت في مكانه، مثل القص والتشذيب، وتتضمن بدائل محسنة لتنسيق النصوص بدلاً من دوال الطباعة القياسية.
Provides a binary-safe string implementation that supports null bytes and special characters in C.