Data Serialization In C++ Using Flatbuffers
Data Serialization In C++ Using Flatbuffers
Published 3/2024
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English
| Size: 1.29 GB[/center]
| Duration: 1h 25m
Learn how to save data or send it over the network in the most efficient way and as an alternative to gRPC's ProtoBuf
What you'll learn
How to use serialize data
How to create FlatBuffers
The difference between Binary and JSON files
Writing efficient modern C++ code
The FlatBuffers schema language in detail
Requirements
Basic C++ knowledge
Basic understanding of OOP
Description
WelcomeIn this bite-sized course you will learn what data serialization is and how to do it properly. Data serialization is an important topic for anyone - from web developers sending data over the network to desktop applications and games where you might want to save settings or game saves onto the disk and then read them fast later.In any of the above cases you would like to have a fast method of preparing data for being sent and also read back on the other side. So I will introduce binary serialization and its benefits compared to the more widespread JSON or XML alternatives.FlatBuffersThis library is developed by Google and is a really efficient mechanism for serializing data. It is one of the two libraries available that are really poplular and the second one is also developed by Google and is called ProtoBuf which is used mostly for their other technology called gRPC. The FlatBuffers library is more lightweight and versiltile though and you can use it for so much more than ProtoBuf.I will be teaching the FlatBuffers schema language for the most of this course. But a lot of the ideas taken from FlatBuffers are also aplicable to ProtoBuf and gRPC communication. You will also be able to compile flatbuffers for other languages as well and not just for C++ - so you can have a C++ server and an EcmaScript client for example.
Overview
Section 1: Introduction
Lecture 1 Promo
Lecture 2 Welcome
Lecture 3 FAQ
Lecture 4 Course Overview
Section 2: Setup
Lecture 5 Software Used
Lecture 6 Installing Visual Studio
Lecture 7 Installing CMake
Lecture 8 Installing Ninja
Lecture 9 Installing Git
Section 3: Project Setup
Lecture 10 Hello, World!
Lecture 11 Coding Standards
Lecture 12 Dual Project Setup
Section 4: Serialization
Lecture 13 What is Data Serialization?
Lecture 14 Simple Binary Serialization
Lecture 15 Problems with Custom Serialization
Section 5: FlatBuffers
Lecture 16 Hello, Buffers!
Lecture 17 FlatBuffers Dependency
Lecture 18 FlatBuffers & CMake
Lecture 19 Saving Buffer Data
Lecture 20 Reading Buffer Data
Lecture 21 Root Type
Lecture 22 Enums
Lecture 23 Structs vs Tables
Lecture 24 Arrays
Lecture 25 Optionals
Lecture 26 Homework: Optionals
Lecture 27 Unions
Lecture 28 Object API
Lecture 29 Serialize to JSON
Lecture 30 Deserialize from JSON
Lecture 31 Schema Updates
Section 6: What now?
Lecture 32 Bonus Materials
C++ Programmers
N/A
Udemy - Data Serialization in C + + using FlatBuffers