Light-weight serializer for embedded applications
$ g++ -o 1.exe test.cpp && ./1.exe
Serializing : x1: 1, r1: 'blah-blah!' x2: 2, x3: 3, x4: 0.123467
ok: true, capacity: 30 , position: 26
Deserializing: x1: 1, r1: 'blah-blah!' x2: 2, x3: 3, x4: 0.123467
Testing overflow
Caught the expected exception
ok: false
Serializing LogRecord...
LogRecord: this: 0x7ffc055b8ed0 schedulerClocksFromStart: 1, level: 1, source: 2, code: 3, textToStore: 'Test string!'
Deserializing LogRecord...
LogRecord: this: 0x7ffc055b8f20 schedulerClocksFromStart: 1, level: 1, source: 2, code: 3, textToStore: 'Test string!'
All tests passed.