binary-layout icon indicating copy to clipboard operation
binary-layout copied to clipboard

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 w...

Results 6 binary-layout issues
Sort by recently updated
recently updated
newest added

I am not entirely sure how to do it, but it would be nice if `LayoutAs` was automatically implemented for `repr(some_primitive)` enums. Or at least provide a procedural macro for...

Hi, The project is really awesome for me to parsing on-disk filesystem data, it's not too complex compared to nom, but still supported nested structures. However I am hitting a...

Have you heard of [bolero](https://crates.io/crates/bolero)? It's a fuzz testing framework that is designed to work within rust's test environment. I used it heavily on the code for my Ph.D., and...

It would be great if we could do ```rust binary_layout!(header_layout, NativeEndian, { free_space_start: u16, free_space_end: u16, total_free_space: u16, }); pub const HEADER_SIZE: usize = header_layout::FIXED_SIZE ``` It should be equivalent...

What are the advantages/disadvantages of this library compared to Google's [zerocopy](https://github.com/google/zerocopy)? It's missing from the [alternatives section of the README.md](https://github.com/smessmer/binary-layout/blob/04626867b7bc7d14a6a7414e550bd57167f2d10b/README.md#alternatives). All alternatives I found: - [zerocopy](https://github.com/google/zerocopy) - [bytemuck](https://github.com/Lokathor/bytemuck) - [plain](https://github.com/randomites/plain)...

`paste` is now unmaintained and there is an active RUSTSEC issue to migrate users to the new maintained fork: https://rustsec.org/advisories/RUSTSEC-2024-0436.html