Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Safe-Infered |
A module containing some routines to debug data dump
- hexString :: Word8 -> String
- data BytedumpConfig = BytedumpConfig {}
- defaultConfig :: BytedumpConfig
- dumpRaw :: [Word8] -> String
- dumpRawS :: String -> String
- dumpRawBS :: ByteString -> String
- dumpRawLBS :: ByteString -> String
- dumpWith :: BytedumpConfig -> [Word8] -> String
- dumpWithS :: BytedumpConfig -> String -> String
- dumpWithBS :: BytedumpConfig -> ByteString -> String
- dumpWithLBS :: BytedumpConfig -> ByteString -> String
- dump :: [Word8] -> String
- dumpS :: String -> String
- dumpBS :: ByteString -> String
- dumpLBS :: ByteString -> String
- dumpDiff :: [Word8] -> [Word8] -> String
- dumpDiffS :: String -> String -> String
- dumpDiffBS :: ByteString -> ByteString -> String
- dumpDiffLBS :: ByteString -> ByteString -> String
Documentation
Formatted string configuration
data BytedumpConfig Source
Configuration structure used for formatting functions
BytedumpConfig | |
|
defaultConfig :: BytedumpConfigSource
Default Config using 16 bytes by row with a separation at the 8th byte, and dumping printable ascii character on the right.
Dump bytes into not formatted strings
dumpRawBS :: ByteString -> StringSource
Dump a bytestring into a raw string of hex value
dumpRawLBS :: ByteString -> StringSource
Dump a lazy bytestring into a raw string of hex value
Dump bytes into formatted strings using a specific config
dumpWith :: BytedumpConfig -> [Word8] -> StringSource
Dump a list of bytes into formatted strings using a specific config
dumpWithS :: BytedumpConfig -> String -> StringSource
Dump a string into formatted strings using a specific config
dumpWithBS :: BytedumpConfig -> ByteString -> StringSource
Dump a bytestring into formatted strings using a specific config
dumpWithLBS :: BytedumpConfig -> ByteString -> StringSource
Dump a lazy bytestring into formatted strings using a specific config
Dump bytes into formatted strings using default config
dumpBS :: ByteString -> StringSource
Dump a bytestring into a formatted string of hex value
dumpLBS :: ByteString -> StringSource
Dump a lazy bytestring into a formatted string of hex value
Dump 2 set of bytes into formatted side-by-side strings using default config
dumpDiff :: [Word8] -> [Word8] -> StringSource
Dump two list of word8 into a formatted string of hex value side by side
dumpDiffBS :: ByteString -> ByteString -> StringSource
Dump a bytestring into a formatted string of hex value
dumpDiffLBS :: ByteString -> ByteString -> StringSource
Dump a lazy bytestring into a formatted string of hex value