sigrlami / glaze-mq

Multi-protocol exchange broker for IoT within the 5G-and-Beyond networks, and primary emphasis on scalability.
MIT License
12 stars 2 forks source link

Upgrade to use byte offset on raw pointers instead of shifts #3

Open sigrlami opened 9 months ago

sigrlami commented 9 months ago

Raw pointers (*const T and *mut T) used to primarily support operations operating in units of T. In some cases, working with byte offsets is more convenient, and these new APIs avoid requiring callers to cast to *const u8/*mut u8 first.

For more cleaned API better to switch for that use. Since Rust v1.75.0