commit | 3d8fd964db68b637c082b3e3889debb6b32fc9b7 | [log] [tgz] |
---|---|---|
author | Jim Schaad <ietf@augustcellars.com> | Wed May 27 16:24:23 2015 -0700 |
committer | Jim Schaad <ietf@augustcellars.com> | Wed May 27 16:24:23 2015 -0700 |
tree | 4152d32093f06cad1cfbea3536c1a69b1c59e4cf | |
parent | 604301fac258bdf65b3d1b2ef032f82ad8b087c9 [diff] |
Changes to build on windows Some changes were needed to get a built working under Microsoft Windows compilers/runtimes. * Change a couple of header files * Change the use of inline to be a windows keyword if using a windows compiler. * Create a definition for ssize_t in windows as this is a POSIX constructu
This is a constrained node implementation of CBOR in C that I threw together in 2013, before the publication of RFC 7049, to validate certain implementability considerations.
Its API model was inspired by nxjson. It turns out that this API model actually works even better with the advantages of the CBOR format.
This code has been used in a number of research implementations on constrained nodes, with resulting code sizes appreciably under 1 KiB on ARM platforms.
I always meant to improve the interface some more with certain API changes, in order to get even closer to 0.5 KiB, but I ran out of time. So here it is. If I do get around to making these changes, the API will indeed change a bit, so please be forewarned.
There is a Simple-Makefile
for playing around, as well as a complete cmake
-based build environment. (You can choose what fits your needs better.)
Building with cmake
:
./build.sh
License: MIT