| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Bytezap.Write
Synopsis
- data Write (lt :: LengthType) s
- data LengthType
- runWriteBS :: Write ExactLength RealWorld -> ByteString
- runWriteBSUptoN :: Write MaxLength RealWorld -> ByteString
- prim :: forall a s. Prim' a => a -> Write ExactLength s
- byteString :: ByteString -> Write ExactLength RealWorld
- byteArray# :: ByteArray# -> Int# -> Int# -> Write ExactLength s
- replicateByte :: Int -> Word8 -> Write ExactLength RealWorld
Documentation
data Write (lt :: LengthType) s Source #
A Poke buffer write operation with the associated length to be written.
The length may be either exact or a maximum.
TODO strictness?
data LengthType Source #
What a buffer write length field means.
Constructors
| ExactLength | Exact length to be written. |
| MaxLength | Maximum length to be written. |
byteArray# :: ByteArray# -> Int# -> Int# -> Write ExactLength s Source #
replicateByte :: Int -> Word8 -> Write ExactLength RealWorld Source #
essentially memset