MOS Source Code
Loading...
Searching...
No Matches
unaligned_uint64.c
Go to the documentation of this file.
1
#include "unaligned_uint64.pb.h"
2
#include <pb_encode.h>
3
4
int
main
()
5
{
6
uint8_t
buf[128];
7
pb_ostream_t stream =
pb_ostream_from_buffer
(buf,
sizeof
(buf));
8
MainMessage msg = MainMessage_init_zero;
9
msg.bar[0] =
'A'
;
10
pb_encode
(&stream, MainMessage_fields, &msg);
11
12
return
0;
13
}
14
pb_ostream_from_buffer
pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize)
Definition
pb_encode.c:63
pb_encode
bool pb_encode(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct)
Definition
pb_encode.c:512
uint8_t
unsigned char uint8_t
Definition
pb_syshdr.h:20
main
int main()
Definition
unaligned_uint64.c:4
libs
nanopb
nanopb
tests
regression
issue_227
unaligned_uint64.c
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0