Safe Haskell | None |
---|
This module defines the ByteStringUTF8
newtype wrapper around ByteString
, together with its TextualMonoid
instance.
- newtype ByteStringUTF8 = ByteStringUTF8 ByteString
- decode :: ByteString -> (ByteStringUTF8, ByteString)
Documentation
newtype ByteStringUTF8 Source
decode :: ByteString -> (ByteStringUTF8, ByteString)Source
Takes a raw ByteString
chunk and returns a pair of ByteStringUTF8
decoding the prefix of the chunk and the
remaining suffix that is either null or contains the incomplete last character of the chunk.