google / google/zerocopy

I hope to be able to clearly indicate whether a struct is big-endian or little-endian.

Open
#2,770 2 comments 0 reactions 0 assignees View on GitHub
customer-request
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

I think a macro like #[zerocopy(little)] could be used to specify the endianness, so that for large structs there’s no need to use byteorder to indicate byte order. This would make it easier to quickly migrate code from other binary libraries to zerocopy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.