hexstring-0.9.0: Fast and safe representation of a hex string

Safe HaskellNone
LanguageHaskell2010

Data.HexString

Synopsis

Documentation

data HexString Source

Data type representing a HexString.

Constructors

HexString !ByteString 

getBinary :: HexString -> ByteString Source

Access to the raw binary data this HexString represents

setBinary :: ByteString -> HexString Source

Create new HexString based on raw binary data

decodeText :: Text -> HexString Source

Converts a Text representation to a HexString

decodeString :: String -> HexString Source

Converts a String representation to a HexString

encodeText :: HexString -> Text Source

Converts a HexString to a Text representation

encodeString :: HexString -> String Source

Converts a HexString to a String representation