eclipse-zenoh / zenoh-c

C API for Zenoh
http://zenoh.io
Other
79 stars 57 forks source link

create _Generic macro for type serializing functions #453

Open milyin opened 5 months ago

milyin commented 5 months ago

Describe the release item

Serialize any type with macro z_bytes_serialize, similarly to z_loan Related also to #451

Thanks @wyfo for the idea!

wyfo commented 5 months ago

It was my idea 😭 More seriously, we should also add a z_bytes_deserialize macro at the same time.

milyin commented 5 months ago

It was my idea 😭 More seriously, we should also add a z_bytes_deserialize macro at the same time.

Sorry!!! I've started typing from "J" and didn't noticed the continuation

milyin commented 3 months ago

Serializing funcitons are better aligned in https://github.com/eclipse-zenoh/zenoh-c/issues/553 fixes. Now It would be nice to combine them functions under single macro/template