utils/inc/qshPb.h
Structures
qshPb::pb_buffer_arg
Simple buffer descriptor used by nanopb callbacks.
Members
const void *
Pointer to input/output buffer.
size_t
Length of buffer in bytes.
qshPb::decode_context_data
Members
float *
size_t
size_t
Functions
encode_bytes_callback
----------------- Encoding callbacks -----------------
Encode bytes field from a provided buffer.
pb_ostream_t *
Nanopb output stream.
const pb_field_t *
Target field metadata.
void *const *
Pointer to pb_buffer_arg (const void*).
encode_cstring_cb
Encode a C-string (UTF-8) for a string field.
pb_ostream_t *
Nanopb output stream.
const pb_field_t *
Target field metadata.
void *const *
Pointer to const char*.
encode_nowakeup_msg_ids
Encode repeated fixed32 message IDs (no-wakeup IDs).
pb_ostream_t *
Nanopb output stream.
const pb_field_t *
Target field metadata (repeated fixed32).
void *const *
Pointer to const std::vector<uint32_t>.
encode_string_cb
Encode repeated strings.
pb_ostream_t *
Nanopb output stream.
const pb_field_t *
Target field metadata (repeated fixed32).
void *const *
Pointer to const std::vector<uint32_t>.
decode_payload
----------------- Decoding callbacks -----------------
pb_istream_t *
Nanopb input stream.
const pb_field_t *
Source field metadata.
void **
Pointer to pb_buffer_arg*.
decode_string
Decode a string field to a std::string.
pb_istream_t *
Nanopb input stream.
const pb_field_t *
Source field metadata.
void **
Pointer to std::string*.
decode_suid
Decode sns_std_suid entries into a vector.
pb_istream_t *
Nanopb input stream.
const pb_field_t *
Source field metadata (submessage).
void **
Pointer to std::vector<sns_std_suid>*.
decode_float_array
Decode repeated float values into a vector.
pb_istream_t *
Nanopb input stream.
const pb_field_t *
Source field metadata (repeated fixed32 or float).
void **
Pointer to std::vector<float>*.
decode_repeated_enum
Decode repeated enum values into a vector.
pb_istream_t *
Nanopb input stream.
Source field metadata (repeated fixed32 or float).
void **
Pointer to std::vector<float>*.
printHex
----------------- Utilities -----------------
Print a hex dump of the given buffer (16 bytes per row).
const pb_byte_t *
Pointer to data.
size_t
Size in bytes.
const char *
Optional label printed before the dump.

