bytezap-1.3.0: Bytestring builder with zero intermediate allocation
Safe HaskellSafe-Inferred
LanguageGHC2021

Bytezap.Poke.Derived

Synopsis

Documentation

text :: Text -> Poke s Source #

Poke a Text.

char :: Char -> Poke s Source #

Poke a Char.

Adapted from utf8-string.

unsafePokeIndexed :: (Int -> Poke s) -> Int -> Int -> Poke s Source #

unsafePokeIndexed pokeAt off n performs n indexed pokes starting from off.

Does not check bounds. Largely intended for bytewise pokes where some work needs to be performed for each byte (e.g. escaping text and poking inline).