buttplugio / buttplug

Rust Implementation of the Buttplug Sex Toy Control Protocol
https://buttplug.io
Other
882 stars 64 forks source link

chore: Replace use of BE bytes and swap combination with LE bytes #619

Closed SuhEugene closed 6 months ago

SuhEugene commented 6 months ago

When I was washing myself, when I was in the toilet, the thought often occurred to me: "Maybe to_be_bytes does not mean 'to_be bytes', but 'to BE bytes' - Big Endian, and there's 'to_le_bytes' method as well?". It turned out to be true.

I finally remembered this while I was in a suitable place - at the computer. Now this thought will not torment me in the bathroom.