Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
Documentation
nullTermCstrPfxTag :: String -> NullTerminated ByteString Source #
Turn a constructor name into a prefix tag by adding a null terminator.
Not common in binary data representations, but safe and useful for debugging.
The refine force is safe under the assumption that Haskell constructor names are UTF-8 with no null bytes allowed. Fairly certain that's true.