smessmer / binary-layout

The binary-layout library allows type-safe, inplace, zero-copy access to structured binary data. You define a custom data layout and give it a slice of binary data, and it will allow you to read and write the fields defined in the layout from the binary data without having to copy any of the data. It's similar to transmuting to/from a #[repr(packed)] struct, but much safer.
Apache License 2.0
66 stars 9 forks source link

Differences to `zerocopy` #29

Open tbu- opened 1 month ago

tbu- commented 1 month ago

What are the advantages/disadvantages of this library compared to Google's zerocopy?

It's missing from the alternatives section of the README.md.

All alternatives I found:

tbu- commented 1 month ago

There's also plain.

tbu- commented 1 month ago

Interesting, and zero. I guess at this point I should do the comparison to the lesser-known ones. But the comparison to zerocopy would still be interesting to me.