fromBytes -> fromBytesBE

This commit is contained in:
Eric 2025-02-13 15:23:27 +11:00
parent e7dba4b127
commit b8fc2a16dc
No known key found for this signature in database

View File

@ -20,7 +20,7 @@ proc example*[T](_: type seq[T], len = 0..5): seq[T] =
newSeqWith(chosenlen, T.example)
proc example*(T: type StUint): T =
T.fromBytes(array[sizeof(T), byte].example)
T.fromBytesBE(array[sizeof(T), byte].example)
proc example*(T: type StInt): T =
cast[T](StUint[T.bits].example)