For anyone that's reading along and wondering what this is — Endianness is the order in which bytes are put together and v. relevant for network protocols. E.g. a u16 is essentially [u8, u8]. But when reading it, does the left one or the right one come first? That's Endianness.
-
-
Show this thread
-
The reason why I care about making this really nice is because people that might be looking at C/C++ for network protocols, drivers, etc. will care. If Rust provides an excellent out of the box experience for writing streaming encoders/decoders, I think folks will notice.
Show this thread
End of conversation
New conversation -
-
-
maybe i’m missing something, but why add these methods to the Read trait itself instead of using an extension trait like byteorder and tokio-byteorder do?pic.twitter.com/SyUUOXEqmJ
-
Oh yeah, that's one possible option that I name we might be able to adopt. I don't think that's a bad idea at all. But std seems to have taken a different direction with the `to_le_bytes` methods, and wondering if there's designs possible that would be closer to that.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.