binrep
Safe HaskellNone
LanguageGHC2021

Binrep.Generic

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.

reallyUnsafeRefine : safe assuming Haskell constructor names are UTF-8 with no null bytes allowed