Bitsery
binary_io
Bitsery | binary_io | |
---|---|---|
8 | 3 | |
1,000 | 26 | |
- | - | |
4.0 | 6.6 | |
4 months ago | 10 months ago | |
C++ | C++ | |
MIT License | 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.
Bitsery
- What are some ways I can serialize objects?
-
Introducing ByteStream, a super intuitive, safe, reliable and easy to use utility for binary serialisation and deserialization of complex and deeply nested C++ objects. Looking forward to feedback and comments.
Thanks for sharing https://github.com/fraillt/bitsery it seems more powerful but require quite a boilerplate code for even very simple composite stuff. With ByteStream you can totally forget about deep you are in the data-structure hierarchy.
- Is there any good binary serializer & deserializer for C / C++?
-
Binary serialization library for at least C++17?
Bitsery is the closest I've seen to it, but you have to use extensions (which i can't yet figure out the API for) to make it achieve byte for byte compatbility
-
Google Protobuf vs JSON vs [insert candidate here]
If size and performance matter, then take a look at bitsery. * it might be 9x+ faster than cereal and 18x faster than protobuf. * size-wise, you might save 20-30% by default * on top of that you additional might opt-in into: * bit-level serialization control (e.g. if your values are in the range 1000-2000 it will take you 10bits, or use VLE) * backward-forward compatibility support * pointer support, including raw pointers with the ability to provide custom allocator. * and powerful extensions system, which allows you to further customize things in any way you want it :)
-
easy Serialization library for C++?
About on par with nlohmann is a binary serialization lib called Bitsery. It's easy to use, and will be a lot more performant than json. The downside is that the serialized data won't be human readable.
binary_io
-
What C++ library do you wish existed but hasn’t been created yet?
I wrote a modern iostreams library a while back that was born out of these exact same frustrations: https://github.com/Ryan-rsm-McKenzie/binary_io
-
Is there any good binary serializer & deserializer for C / C++?
I wrote a library called binary_io, specifically for handling bespoke binary formats
-
C++ Show and Tell - Experiment
I feel like standard C++ streams are terribly clunky to use, and suck at anything that isn't reading a plain text file encoded in ASCII. So when I saw Modern std::byte stream IO for C++, I got excited that C++ might finally get some powerful abstractions for IO that weren't agonizingly painful to customize/use. However, sadly the author abandoned the paper (and also their github/reddit account). So I went ahead and wrote my own library which was loosely based off of that paper, and uses C++20. The result is a set of generic streams which can be used to implement a binary IO protocol for a wide variety of sources, and which can easily be extended for other sources as well (have you ever tried to write your own std::basic_streambuf?). It's aptly named binary_io.
What are some alternatives?
Protobuf - Protocol Buffers - Google's data interchange format
osmanip - A cross-platform library for output stream manipulation using ANSI escape sequences.
smf - Fastest RPC in the west
Blackjack_V1.02 - Extension of my old Blackjack game with Qt for C++
cereal - A C++11 library for serialization
mysql - MySQL C++ client based on Boost.Asio
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
emocrypt - Encrypts data into emojipastas
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
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
nativejson-benchmark - C/C++ JSON parser/generator benchmark