| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
It's reasonable to want to modify the contents of the buffer in other
ways than just plain appending, and the storage is already guaranteed
contiguous. Drop the `const` from the `bbuf_get` return type, so it
can be used to modify bytes in-place.
The parallel request processing code may need to actually deallocate
buffers as well, so add a `bbuf_free` function.
|
|
|
|
|
| |
The `cbuf_alloc` and `cbuf_free` functions conflict with the OpenWrt
`libubox` library naming.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The previous version returned 0 if the string to compare was either
equal to or a prefix of the target buffer. This change fixes it to
only return 0 when the string is actually equal. Otherwise, it follows
the shortlex ordering, for convenience.
|
| |
|
|
|