basement-0.0.16: Foundation scrap box of array & string
Safe HaskellSafe-Inferred
LanguageHaskell2010

Basement.Base16

Synopsis

Documentation

unsafeConvertByte :: Word8# -> (# Word8#, Word8# #) Source #

Convert a byte value in Word# to two Word#s containing the hexadecimal representation of the Word#

The output words# are guaranteed to be included in the 0 to 2^7-1 range

Note that calling convertByte with a value greater than 256 will cause segfault or other horrible effect. From GHC9.2, Word8# cannot be >= 256.

hexWord16 :: Word16 -> (Char, Char, Char, Char) Source #

hex word16

hexWord32 :: Word32 -> (Char, Char, Char, Char, Char, Char, Char, Char) Source #

hex word32