Skip to content
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

docs: Update C/Pico/Cpp migration guide for serialization #73

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DenisBiryukov91
Copy link

C/Pico/Cpp serialization update

@DenisBiryukov91 DenisBiryukov91 changed the title C/Pico/Cpp serialization update docs: Update C/Pico/Cpp guide for serialization Oct 8, 2024
@DenisBiryukov91 DenisBiryukov91 changed the title docs: Update C/Pico/Cpp guide for serialization docs: Update C/Pico/Cpp migration guide for serialization Oct 8, 2024
```

Yet another alternative is to send the statically allocated constant data (hence that does not require to be deleted) without making an extra copy. This can be achieved using the `z_serialize_from_static_buf` or `z_serialize_from_static_str` functions:

To implement custom (de-)serialization functions, Zenoh 1.0.0 provides `ze_owned_bytes_serializer`, `ze_bytes_deserializer_t` or lower-level `z_owned_bytes_wrtiter_t` and `ze_bytes_reader_t` types and corresponding functions.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it bez_bytes_reader_t ?

```
We added a default `ZenohCodec`, which provides default serialization / deserialization for common numerical types, strings, and containers:
Additionaly `zenoh::ext` namespace provides support for serialization/deserialziation of typed data to/into `Bytes`:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants