Deserialization

Concerning deserialization, almost the same applies as to serialization. Each message generated has a deserialize() function, which takes an object derived from ReadBufferInterface as input. The actual implementation which you use is the ReadBufferFixedSize template class. Specify the number of bytes allocated in the class via the template parameter.

Before version 3.2.0, the user of this library had to write an implementation for the ReadBufferInterface. The class should hold the serialized message received over your specific communications method. For instance, it could contain all the packages received over a TCP connection. If you need more documentation on the ReadBufferInterface class, you can find it here.