CppCon 2019 has ended
Back To Schedule
Thursday, September 19 • 14:00 - 15:00
Reading Binary Data with Style: A Serialization Framework for C++17

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Reading structured data from a file or network stream remains cumbersome and error-prone in C++, especially when data validation is required. Existing approaches require too much boilerplate, aren't always portable, and may be restricted to specific data sources. Despite these limitations, there have been few alternatives in the past.

This talk introduces blobify, an experimental serialization framework for C++17 designed to convert user-defined structs to binary data blobs and vice-versa. Contrary to similar frameworks, blobify largely automates the process, and it includes an embedded domain specific language to handle data validation.

I will describe blobify's API design and usage, explain how it works under the hood, and provide an outlook at what the Reflection TS has in store for future improvements.

Link to the library on GitHub: https://github.com/neobrain/blobify

avatar for Tony Wasserka

Tony Wasserka

Low-level anything: Tony is a consultant and long-term C++ enthusiast who has worked on the console emulator projects Dolphin (GameCube/Wii), PPSSPP (PSP), and Mikage (3DS) since 2010. More recently, he has worked on Vulkan graphics drivers for PowerVR graphics processors. His main... Read More →

Thursday September 19, 2019 14:00 - 15:00 MDT
Summit 4/5
  • Parsing/Text and I/O
  • Level Beginner, Intermediate
  • Tags C++17