libcbor

Documentation for version 0.5.0, updated on Mar 15, 2020.

Overview

libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.

Main features
  • Complete RFC conformance 1

  • Robust C99 implementation

  • Layered architecture offers both control and convenience

  • Flexible memory management

  • No shared global state - threading friendly 2

  • Proper handling of UTF-8

  • Full support for streams & incremental processing

  • Extensive documentation and test suite

  • No runtime dependencies, small footprint

1

See RFC conformance

2

With the exception of custom memory allocators (see Memory management and reference counting)

Contents