Comments (2)
Could you please illustrate this with an example? Do you need to get the original header byte that specifies the main type?
(You can get any semantic information using http://libcbor.readthedocs.io/en/latest/api/item_types.html#_CPPv211cbor_typeofPK11cbor_item_t and the relevant methods for that type, e.g. http://libcbor.readthedocs.io/en/latest/api/type_4.html#getting-metadata)
from libcbor.
I found a workaround by using cbor_serialize(). The original type is not the problem, but I wanted to original cbor for an array and it enclosed data items. With cbor_serialize it works fine, thanks!
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.