ledest / ecbor Goto Github PK
View Code? Open in Web Editor NEWErlang CBOR library
License: GNU General Public License v3.0
Erlang CBOR library
License: GNU General Public License v3.0
Love the library. We have an application that uses CBOR and need to deserialize CBOR maps to an ordered representations (similar to what you're doing at intermediary steps in the code). Similar to Jason.OrderedObject (Elixir JSON library) or erlang-msgpack deserializing to jsx or jiffy ordered property lists.
Glad to push a PR if you can give us direction. We've been programming in Elixir but have some erlang experience.
When using https://hexdocs.pm/cbor/readme.html#encoding as in their example we have
CBOR.encode([1, [2, 3]])
<<130, 1, 130, 2, 3>>
When using python cbor2 we get
>>> cbor2.dumps([1,2,3,4])
b'\x84\x01\x02\x03\x04'
However, when using ecbor we get
ecbor:encode([1, 2, 3, 4]).
<<159,1,2,3,4,255>>
Probably fixed widths should use the fixed array representation to match other implementations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.