MessagePack
CAN-Helpers
MessagePack | CAN-Helpers | |
---|---|---|
2 | 3 | |
2,905 | 9 | |
1.1% | - | |
0.0 | 4.2 | |
9 days ago | 3 months ago | |
C++ | ||
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MessagePack
-
Serializing struct with bit-fields
I have searched extensively, and have tried a few libraries from msgpack-c (C++), to YAS, and a few more not to name.
-
Binary de-/serialization
how about https://github.com/msgpack/msgpack-c/tree/c_master ?
CAN-Helpers
-
Serializing struct with bit-fields
You'll basically just have to treat it like CAN data. I have a C++ lib that can encode / decode, you'd have to reimplement it in python or link to it. Also it only supports individual fields up to 64 bits. https://github.com/Wetmelon/CAN-Helpers
- Do compilers not take advantage of memcpy's aliasing rules?
- bitpacker - type safe and low-boilerplate bit level serialization using modern C++. Compatible with python bitstruct.
What are some alternatives?
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
bitpacker - type-safe and low-boilerplate bit level serialization
Protobuf - Protocol Buffers - Google's data interchange format
CPython - The Python programming language
cereal - A C++11 library for serialization
yas - Yet Another Serialization
Boost.Serialization - Boost.org serialization module
ArduinoJson - 📟 JSON library for Arduino and embedded C++. Simple and efficient.
SBE - Simple Binary Encoding (SBE) - High Performance Message Codec
Bond - Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services.
protobuf-c - Protocol Buffers implementation in C
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code