MeshNet
1.0.0
|
Interface for converting class or structure instance to raw bytes, which can be sent. More...
#include <meshHelper.h>
Public Member Functions | |
virtual size_t | sizeOf () const |
Gets size of whole current instance uncompressed (including dynamically allocated memory) in bytes. More... | |
virtual size_t | printRaw (OSTREAM *stream, void(*CRC_calculation)(uint8_t *, size_t)) const |
Prints current instance into stream in raw bytes. More... | |
virtual size_t | getRawSize () const |
Gets size of data, that will be printed to stream using printRaw() in bytes. More... | |
![]() | |
virtual size_t | printHeader (OSTREAM *stream) const |
Prints header of table. More... | |
virtual size_t | printLine (OSTREAM *stream) const |
Prints this data as row to table. More... | |
Interface for converting class or structure instance to raw bytes, which can be sent.
|
inlinevirtual |
Gets size of data, that will be printed to stream using printRaw() in bytes.
Reimplemented in MeshPacket.
|
inlinevirtual |
Prints current instance into stream in raw bytes.
CRC_calculation | Pointer to function, which provides CRC calculation, every sent byte has to be passed to this function. First parameter is pointer to data, that were printed and second is number of printed bytes. |
Reimplemented in MeshPacket.
|
inlinevirtual |
Gets size of whole current instance uncompressed (including dynamically allocated memory) in bytes.
Reimplemented in MeshPacket.