|
JBImprov
Improv Wi-Fi provisioning over serial and Bluetooth LE
|
Reads length prefixed strings from RPC command data. More...
#include <JBImprovProtocol.h>
Public Member Functions | |
| JBImprovStringReader (const uint8_t *data, size_t length) | |
Read from length bytes at data. The data is not copied. | |
| bool | next (const char *&value, size_t &length) |
| Read the next string. The string is not null terminated. | |
| bool | next (char *buffer, size_t size) |
| Read the next string into a null terminated buffer. | |
| bool | atEnd () const |
| true when all data has been read. | |
Reads length prefixed strings from RPC command data.
| bool JBImprovStringReader::next | ( | char * | buffer, |
| size_t | size ) |
Read the next string into a null terminated buffer.
size - 1 bytes. | bool JBImprovStringReader::next | ( | const char *& | value, |
| size_t & | length ) |
Read the next string. The string is not null terminated.