Comments (1)
The example executable outputs binary, not hex:
⇒ ./examples/cjson2cbor examples/data/json_example.json | hexdump -C
00000000 a2 61 61 84 1b 00 00 00 00 00 00 00 01 fa 40 0c |.aa...........@.|
00000010 cc cd 3b 00 00 00 00 00 00 00 00 76 c5 be 6c 75 |..;........v..lu|
00000020 c5 a5 6f 75 c4 8d 6b c3 bd 20 6b c5 af c5 88 21 |..ou..k.. k....!|
00000030 21 21 61 62 a1 61 63 83 f5 f4 f6 |!!ab.ac....|
0000003b
This matches the expected encoding, up to the item length encoding width, which is automatically minimized by cbor.me but not by the example
from libcbor.
Related Issues (20)
- Make cbor_encode_half respect NaN data bits
- Improve streaming parser documentation, especially for error state handling
- Improve test coverage of cbor_bytestring_add_chunk failure scenarios
- Add [[nodiscard]] attribute
- Broken encoding of empty byte strings in 0.10.0 HOT 1
- FR: Vectorization HOT 1
- test_serialize_4b_bytestring / test_serialize_8b_bytestring tests fail on 32-bit systems (size_t overflow) HOT 2
- Better documentation for memory management
- Documentation references RFC 7049, which has been replaced by RFC 8949 (STD94).
- Testing for musl HOT 3
- Signaling NaN encoding broken on Windows
- Improvements for examples HOT 1
- Need to use cbor as library HOT 1
- Out of bound pointer in cbor_build_bytestring HOT 1
- Broken CMake configuration HOT 2
- cbor_load returns CBOR_ERR_MALFORMATED parsing the assigned tags for cose-encrypt0 (16), cose-mac0 (17), and cose-sign1 (18) HOT 1
- Visual Studio enabling of SDL Checks causes failure
- Decode a CBOR Map type payload HOT 2
- Make libcbor compatible with PlatformIO HOT 4
- It doesn't seem possible to disable LTO HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libcbor.