Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encoding/binary.HostEndianness #36040

Closed
ddevault opened this issue Dec 7, 2019 · 3 comments
Closed

Add encoding/binary.HostEndianness #36040

ddevault opened this issue Dec 7, 2019 · 3 comments

Comments

@ddevault
Copy link

ddevault commented Dec 7, 2019

For the purpose of detecting the endianness of the host machine/toolchain. This would be equal to either binary.BigEndian or binary.LittleEndian, with which they could be compared, or it could be passed directly into binary.Read/binary.Write et al.

@ghost
Copy link

ghost commented Dec 7, 2019

Recently closed: proposal: encoding/binary: add NativeEndian

@ddevault
Copy link
Author

ddevault commented Dec 7, 2019

Should I leave comments in that thread or in this one? My use-case is interop with external systems which are endian-sensitive. In this case, I'm implementing the Wayland wire protocol, and Wayland packets are defined to use host endianness.

@ianlancetaylor
Copy link
Contributor

I don't think anything has changed since #35398. In any case, that is the place to leave comments, although it's unlikely to make a difference.

@golang golang locked and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants