EmbeddedProto
2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
|
#include <FieldStringBytes.h>
Public Member Functions | |
FieldString ()=default | |
virtual | ~FieldString ()=default |
void | operator= (const char *const &&rhs) |
Public Member Functions inherited from EmbeddedProto::internal::FieldStringBytes< MAX_LENGTH, char > | |
FieldStringBytes () | |
virtual | ~FieldStringBytes () |
uint32_t | get_length () const |
Obtain the number of characters in the string right now. More... | |
uint32_t | get_max_length () const |
Obtain the maximum number characters in the string. More... | |
const char * | get_const () const |
Get a constant pointer to the first element in the array. More... | |
const char & | get_const (uint32_t index) const |
Get a constant reference to the value at the given index. More... | |
char & | get (uint32_t index) |
Get a reference to the value at the given index. More... | |
char & | operator[] (uint32_t index) |
Get a reference to the value at the given index. More... | |
const char & | operator[] (uint32_t index) const |
Get a constant reference to the value at the given index. More... | |
Error | set (const char *data, const uint32_t length) |
Error | serialize_with_id (uint32_t field_number, WriteBufferInterface &buffer) const override |
Error | serialize (WriteBufferInterface &buffer) const override |
Error | deserialize (ReadBufferInterface &buffer) override |
void | clear () override |
Reset the field to it's initial value. More... | |
Public Member Functions inherited from EmbeddedProto::Field | |
Field ()=default | |
virtual | ~Field ()=default |
uint32_t | serialized_size () const |
Calculate the size of this message when serialized. More... | |
Additional Inherited Members | |
Protected Attributes inherited from EmbeddedProto::internal::FieldStringBytes< MAX_LENGTH, char > | |
uint32_t | current_length_ |
Number of item in the data array. More... | |
char | data_ [MAX_LENGTH] |
The text. More... | |
|
default |
|
virtualdefault |
|
inline |