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 डायनामिक स्ट्रिंग लाइब्रेरी है जो हीप-एलोकेटेड स्ट्रिंग्स के लिए मेमोरी मैनेजमेंट रैपर प्रदान करती है। यह स्ट्रिंग की लंबाई को स्पष्ट रूप से ट्रैक करके बाइनरी-सेफ स्टोरेज लागू करती है, जिससे लाइब्रेरी डेटा के भीतर नल (null) कैरेक्टर को संभालने में सक्षम होती है। यह लाइब्रेरी एक ऐसी मेमोरी आर्किटेक्चर के माध्यम से खुद को अलग करती है जो एलोकेशन और फ्रीिंग के लिए इंटरचेंजेबल फंक्शन पॉइंटर्स का उपयोग करती है, जिससे कस्टम मेमोरी मैनेजरों का एकीकरण संभव हो जाता है। यह निरंतर-समय (constant-time) में लंबाई पुनर्प्राप्ति प्रदान करने के लिए हेडर-स्टोर्ड लेंथ ट्रैकिंग का उपयोग करती है और मानक C स्ट्रिंग फ़ंक्शंस के साथ संगतता सुनिश्चित करने के लिए नल-टर्मिनेटेड बफ़र पैडिंग बनाए रखती है। यह टूलकिट स्ट्रिंग हेरफेर (manipulation) क्षमताओं की एक विस्तृत श्रृंखला को कवर करती है, जिसमें कॉनकैटिनेशन, टोकनाइज़ेशन, जॉइनिंग और रेंज एक्सट्रैक्शन शामिल हैं। यह इन-प्लेस बफ़र म्यूटेशन के लिए उपयोगिताएँ भी प्रदान करती है, जैसे कि ट्रिमिंग और क्रॉपिंग, और इसमें मानक प्रिंट फ़ंक्शंस के लिए ऑप्टिमाइज़्ड स्ट्रिंग फ़ॉर्मेटिंग विकल्प शामिल हैं।
Provides a binary-safe string implementation that supports null bytes and special characters in C.