memory-0.14.8: memory and related abstraction stuff

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Data.Memory.Encoding.Base16

Description

Hexadecimal escaper

Synopsis

Documentation

showHexadecimal #

Arguments

:: (forall a. (Ptr Word8 -> IO a) -> IO a)

a with type of function to hold reference to the object

-> Int

length in bytes

-> String 

Transform a raw memory to an hexadecimal String

user beware, no checks are made

toHexadecimal #

Arguments

:: Ptr Word8

destination memory

-> Ptr Word8

source memory

-> Int

number of bytes

-> 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.

fromHexadecimal :: Ptr Word8 -> Ptr Word8 -> Int -> IO (Maybe Int) #

convert a base16 src in dst.

n need to even