Binrep.Type.Text.Encoding.Utf16
data Utf16 (end :: ByteOrder) Source #
Defined in Binrep.Type.Text.Encoding.Utf16
Methods
decode :: Bytes -> Either String (AsText (Utf16 BE)) Source #
decode :: Bytes -> Either String (AsText (Utf16 LE)) Source #
encode' :: Text -> Bytes Source #
Any Text value is always valid UTF-16.
Text
validate :: Proxy (Utf16 end) -> Text -> Maybe RefineException #