| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.ByteArray.Builder.Unsafe
Contents
Types
An unmaterialized sequence of bytes that may be pasted into a mutable byte array.
Constructors
| Builder (forall s. MutableByteArray# s -> Int# -> Int# -> State# s -> (#State# s, Int##)) | This function takes a buffer, an offset, and a number of remaining bytes. It returns the new offset (should be greater than the old offset), or if there was not enough space left in buffer, it returns -1. |
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.