mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-05 00:06:16 -04:00
Add the function `spa_json_encode_stringn()` that works very similarly to `spa_json_encode_string()`, with the difference that it works with non-null terminated strings (e.g. `std::string_view`). `spa_json_encode_string()` is then implemented with this new function. Additionally, since the input string is no longer null terminated, escape bytes of value 0. This is probably better that putting it into the result. |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| lib | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||