NanoPBExtensions.h 455 B

123456789101112131415
  1. #pragma once
  2. #include <pb.h>
  3. /// Set of helper methods that simplify nanopb usage in C++.
  4. namespace bell::nanopb {
  5. bool encodeString(pb_ostream_t* stream, const pb_field_t* field,
  6. void* const* arg);
  7. bool encodeVector(pb_ostream_t* stream, const pb_field_t* field,
  8. void* const* arg);
  9. bool encodeBoolean(pb_ostream_t* stream, const pb_field_t* field,
  10. void* const* arg);
  11. } // namespace bell::nanopb