-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z_bytes example #218
z_bytes example #218
Conversation
const auto output = payload.deserialize<uint32_t>(); | ||
assert(input == output); | ||
// Corresponding encoding to be used in operations like `.put()`, `.reply()`, etc. | ||
const auto encoding = Encoding("zenoh/uint32"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have Encoding
constants instead of using the string form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not yet, will do in separate pr, since they are introduced in pico by eclipse-zenoh/zenoh-pico#673
Protobuf example is still missing |
Added! |
[closes #216] |
examples/universal/z_bytes.cxx
Outdated
GOOGLE_PROTOBUF_VERIFY_VERSION; | ||
|
||
// Construct PB message | ||
Book input; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aligned!
No description provided.