memory-0.7: memory and related abtraction stuff

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

Data.ByteArray.Encoding

Description

ByteArray base converting

Synopsis

Documentation

convertToBase :: (ByteArrayAccess bin, ByteArray bout) => Base -> bin -> bout Source

Convert a bytearray to the equivalent representation in a specific Base

convertFromBase :: (ByteArrayAccess bin, ByteArray bout) => Base -> bin -> Either String bout Source

Try to Convert a bytearray from the equivalent representation in a specific Base

data Base Source

Different bases that can be used

Constructors

Base16

similar to hexadecimal

Base32 
Base64 

Instances