pipewire/spa/include
Barnabás Pőcze 0ac39e0e5d spa: utils: json: add spa_json_encode_stringn()
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.
2026-07-04 00:03:44 +02:00
..
spa spa: utils: json: add spa_json_encode_stringn() 2026-07-04 00:03:44 +02:00
meson.build spa: expose utils/cleanup.h for external users 2023-10-11 19:56:11 +02:00