Class SaveRestore

Inheritance Relationships

Derived Types

Class Documentation

class SaveRestore

Interface for classes that can save and restore data from a buffer.

Subclassed by InterfaceObject, KnxFacade< P, B >, Property

Public Functions

inline virtual uint8_t *save(uint8_t *buffer)

This method is called when the object should save its state to the buffer.

Parameters

buffer – The buffer the object should save its state to.

Returns

The buffer plus the size of the object state. The next object will use this value as the start of its buffer.

inline virtual const uint8_t *restore(const uint8_t *buffer)

This method is called when the object should restore its state from the buffer.

Parameters

buffer – The buffer the object should restore its state from.

Returns

The buffer plus the size of the object state. The next object will use this value as the start of its buffer.

inline virtual uint16_t saveSize()
Returns

The maximum number of bytes the object needs to save its state.