Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Builder = Builder (forall s. MutableByteArray# s -> Int# -> Int# -> Commits s -> State# s -> (#State# s, MutableByteArray# s, Int#, Int#, Commits s#))
- data Commits s
- = Mutable (MutableByteArray# s) Int# !(Commits s)
- | Immutable ByteArray# Int# Int# !(Commits s)
- | Initial
- stringUtf8 :: String -> Builder
- cstring :: CString -> Builder
Types
An unmaterialized sequence of bytes that may be pasted into a mutable byte array.
Builder (forall s. MutableByteArray# s -> Int# -> Int# -> Commits s -> State# s -> (#State# s, MutableByteArray# s, Int#, Int#, Commits s#)) |
Mutable | |
| |
Immutable | |
| |
Initial |
Safe Functions
These functions are actually completely safe, but they are defined
here because they are used by typeclass instances. Import them from
Data.ByteArray.Builder
instead.