HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulememory-0.18.0Haskell2010

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
  • Packagememory-0.18.0
  • 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.