SingingCat
0
application
include
nanopb
protobuf.h
1
#ifndef PROTOBUF_H
2
#define PROTOBUF_H 1
3
/*
4
* \brief convert a buffer in memory or flash to a struct defined by a .proto file
5
*/
6
int
buf_to_struct(
void
*buf,
int
bufsize,
void
*iter,
void
*out);
7
/*
8
* \brief convert a struct to memory defined by a .proto file
9
*/
10
int
struct_to_buf(
void
*buf,
int
bufsize,
void
*iter,
void
*in);
11
/*
12
* \brief release memory for a decoded struct
13
*/
14
void
proto_release(
void
*buf);
15
#endif
Generated on Tue May 28 2024 19:13:43 for SingingCat by
1.9.4