EmbeddedProto  2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
Public Member Functions | List of all members
EmbeddedProto::Field Class Referenceabstract

#include <Fields.h>

Inheritance diagram for EmbeddedProto::Field:
Inheritance graph
[legend]

Public Member Functions

 Field ()=default
 
virtual ~Field ()=default
 
virtual Error serialize_with_id (uint32_t field_number, WriteBufferInterface &buffer) const =0
 
virtual Error serialize (WriteBufferInterface &buffer) const =0
 
virtual Error deserialize (ReadBufferInterface &buffer)=0
 
uint32_t serialized_size () const
 Calculate the size of this message when serialized. More...
 
virtual void clear ()=0
 Reset the field to it's initial value. More...
 

Constructor & Destructor Documentation

◆ Field()

EmbeddedProto::Field::Field ( )
default

◆ ~Field()

virtual EmbeddedProto::Field::~Field ( )
virtualdefault

Member Function Documentation

◆ clear()

virtual void EmbeddedProto::Field::clear ( )
pure virtual

◆ deserialize()

virtual Error EmbeddedProto::Field::deserialize ( ReadBufferInterface buffer)
pure virtual

◆ serialize()

virtual Error EmbeddedProto::Field::serialize ( WriteBufferInterface buffer) const
pure virtual

◆ serialize_with_id()

virtual Error EmbeddedProto::Field::serialize_with_id ( uint32_t  field_number,
WriteBufferInterface buffer 
) const
pure virtual

◆ serialized_size()

uint32_t EmbeddedProto::Field::serialized_size ( ) const

Calculate the size of this message when serialized.

Returns
The number of bytes this message will require once serialized.

The documentation for this class was generated from the following files: