Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data Write (lt :: LengthType) s
- data LengthType
- runWriteBS :: Write 'ExactLength RealWorld -> ByteString
- runWriteBSUptoN :: Write 'MaxLength RealWorld -> ByteString
- prim :: 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.
ExactLength | Exact length to be written. |
MaxLength | Maximum length to be written. |
runWriteBS :: Write 'ExactLength RealWorld -> ByteString Source #
byteString :: ByteString -> Write 'ExactLength RealWorld Source #
byteArray# :: ByteArray# -> Int# -> Int# -> Write 'ExactLength s Source #
replicateByte :: Int -> Word8 -> Write 'ExactLength RealWorld Source #
essentially memset