more missing stuff

This commit is contained in:
philippe44
2023-05-07 11:50:46 +02:00
parent 2f9b506e9b
commit fa91879535
2 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#pragma once
#include <pb.h>
/// Set of helper methods that simplify nanopb usage in C++.
namespace bell::nanopb {
bool encodeString(pb_ostream_t* stream, const pb_field_t* field,
void* const* arg);
bool encodeVector(pb_ostream_t* stream, const pb_field_t* field,
void* const* arg);
bool encodeBoolean(pb_ostream_t* stream, const pb_field_t* field,
void* const* arg);
} // namespace bell::nanopb