Code Review
/
apps
/
agl-service-can-low-level.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Add 'CAN-binder/libs/nanopb/' from commit '278ffb890e3d8722e4c7d824baaf221a1e375fc4'
[apps/agl-service-can-low-level.git]
/
CAN-binder
/
libs
/
nanopb
/
tests
/
regression
/
issue_227
/
unaligned_uint64.c
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