Closed GrishaVar closed 2 years ago
Should
read5_mod_100k
perhaps useu64::from_be_bytes
? It would be more readable/understandable.
I forgot to reply to this, but I think the widening from a 5-byte array to an 8-byte array would make the readability a wash. (Honestly even the TODO is sort of a wash on readability, but it does mean there's not hardcoded indexes.)
Yep, I didn't add it because my conversion to [u8; 8]
less readable than the current code.
Thank you again!
I noticed there was a todo left in the comments :)
Should
read5_mod_100k
perhaps useu64::from_be_bytes
? It would be more readable/understandable.