base16
Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Base16.Internal.Utils

Synopsis
  • aix :: Word8 -> Addr# -> Word8
  • reChunk :: [ByteString] -> [ByteString]
  • runShortST :: (forall s. ST s ByteArray) -> ShortByteString
  • runDecodeST :: (forall s. ST s (Either Text ByteArray)) -> Either Text ShortByteString
  • runDecodeST' :: (forall s. ST s ByteArray) -> ShortByteString

Documentation

aix :: Word8 -> Addr# -> Word8 Source #

Read Word8 index off alphabet addr

reChunk :: [ByteString] -> [ByteString] Source #

Form a list of chunks, and rechunk the list of bytestrings into length multiples of 2

runShortST :: (forall s. ST s ByteArray) -> ShortByteString Source #

Write a byte array directly to Short bytestring

runDecodeST :: (forall s. ST s (Either Text ByteArray)) -> Either Text ShortByteString Source #

Used for writing ByteArray#-based encodes

runDecodeST' :: (forall s. ST s ByteArray) -> ShortByteString Source #