master
md 11 lines 470 Bytes
Rendered Raw
1 # BUFFER
2
3 `BUFFER` is a convenience library for working with strings in `C`.
4 Mainly, `BUFFER`s eliminate the need for tracking the string length, thus providing
5 a safe alternative for string operations.
6
7 Also, they are super fast in printing and appending data to the string and its `buffer_strlen()`
8 is just a lookup (it does not traverse the string).
9
10 Netdata uses `BUFFER`s for preparing web responses and buffering data to be sent upstream or
11 to external databases.