1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/cmake
Andy Green dcaa0013b4 lecp: add CBOR stream parser LECP like JSON LEJP
This provides very memory-efficient CBOR stream parsing
and writing.

The parser  converts pieces of CBOR into callbacks that define
the structure and collate string and blobs into buffer chunks
for extensible and easy access.

It is fragementation-safe and does not need all the CBOR in
the same place at one time, chunks of CBOR are parsed and
discarded as provided.

It does not allocate and just needs a few hundred bytes of
stack for even huge CBOR objects.  Huge strings and blobs
are handled without needing memory to hold them atomically.

Includes ./minimal-examples/api-tests/api-test-lecp that
unit tests it against 82 official example CBORs and
26 additional test vectors from COSE (just checking the CBOR
parsing).

The writing apis allow printf style semantics with a variety
of CBOR-aware %-formats.  The apis write into a context that
manages output buffer usage, if the output buffer fills,
then the apis return with an AGAIN code that lets you issue
and reset the output buffer and repeat the api all to issue
more output.  The subsequent calls can occur much later or
from a different function context, so this is perfect for
WRITEABLE-mediated output from the network parts of lws.

See ./READMEs/README.cbor-lecp.md
2021-08-21 17:44:40 +01:00
..
FindGit.cmake add FindGit.cmake 2013-02-18 18:34:10 +08:00
FindMiniz.cmake cmake: miniz: add as option 2019-07-03 19:46:23 +01:00
FindOpenSSLbins.cmake cmake: windows: update FindOpenSSLbins.cmake 2020-11-26 09:23:24 +00:00
libwebsockets-config-version.cmake.in cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
libwebsockets-config.cmake.in cmake: windows: try to auto include LwsCheckRequirements 2020-12-01 15:38:20 +00:00
lws_config.h.in lecp: add CBOR stream parser LECP like JSON LEJP 2021-08-21 17:44:40 +01:00
lws_config_private.h.in context: properly check for sys/resource.h 2020-11-01 12:14:19 +00:00
LwsCheckRequirements.cmake sai-resource 2021-02-24 08:56:27 +00:00
UseRPMTools.cmake rpm: do parallel compilation during rpm builds 2018-05-26 09:20:20 +08:00