HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleram-0.22.1Haskell2010

Data.Memory.Encoding.Base16

Low-level Base16 encoding and decoding.

If you just want to encode or decode some bytes, you probably want to use the Data.ByteArray.Encoding module.

  • 3 values
  • Packageram-0.22.1
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBase16.hs
valueshowHexadecimal
  1. :: (forall a. (Ptr Word8 -> IO a) -> IO a)

    a with type of function to hold reference to the object

  2. -> Int

    length in bytes

  3. -> String
#

Transform a raw memory to an hexadecimal String

user beware, no checks are made

valuetoHexadecimal
  1. :: Ptr Word8

    destination memory

  2. -> Ptr Word8

    source memory

  3. -> Int

    number of bytes

  4. -> IO ()
#

Transform a number of bytes pointed by.src in the hexadecimal binary representation in dst

destination memory need to be of correct size, otherwise it will lead to really bad things.