Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.22 KB

Module-4-Persist.md

File metadata and controls

16 lines (10 loc) · 1.22 KB

Helium Core

Persist is an implementation of object persistence built atop the Reflect C++ reflection library. It currently implements the following formats:

Persist completely automates the serialization of an object to and from a flat byte buffer or file. C++ reflection information provides the necessary metadata about the member variable layout of a class of object. In the general case, objects will be factory allocated when reading a file or buffer, but the user can also specify an existing object to read state into.

Design

Persist is written to easily facilitate reading and writing data between both files and in-memory buffers.

Implementation

Note there are some custom types defined in the BSON implementation, as well as custom read/write code for native type support in the format.