Skip to Content
Embedded Programming with Modern C++ Cookbook
book

Embedded Programming with Modern C++ Cookbook

by Igor Viarheichyk
April 2020
Intermediate to advanced
412 pages
9h 58m
English
Packt Publishing
Content preview from Embedded Programming with Modern C++ Cookbook

How it works...

In our test application, we defined a data type to represent paths from a source point to multiple destination points. We intentionally used hierarchical structures scattered in memory to demonstrate how to approach this problem in a generic way.

If we do not have specific requirements for performance, one of the possible approaches to serialization is storing data in text format. Besides its simplicity, it has two major advantages: 

  • Text encoding automatically resolves all issues related to endianness, alignment, and the size of integer data types.
  • It is readable by humans. Developers can use serialized data for debugging without any additional tools.

To work with text representation, we can use the input and output streams ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ System Programming Cookbook

C++ System Programming Cookbook

Onorato Vaticone
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 9781838821043Supplemental Content