| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GLib.Structs.ByteArray
Description
Contains the public fields of a GByteArray.
- newtype ByteArray = ByteArray (ManagedPtr ByteArray)
- newZeroByteArray :: MonadIO m => m ByteArray
- noByteArray :: Maybe ByteArray
- byteArrayFree :: MonadIO m => ByteString -> Bool -> m Word8
- byteArrayFreeToBytes :: MonadIO m => ByteString -> m Bytes
- byteArrayNew :: MonadIO m => m ByteString
- byteArrayNewTake :: MonadIO m => ByteString -> m ByteString
- byteArrayUnref :: MonadIO m => ByteString -> m ()
- byteArray_data :: AttrLabelProxy "data"
- getByteArrayData :: MonadIO m => ByteArray -> m Word8
- setByteArrayData :: MonadIO m => ByteArray -> Word8 -> m ()
- byteArray_len :: AttrLabelProxy "len"
- getByteArrayLen :: MonadIO m => ByteArray -> m Word32
- setByteArrayLen :: MonadIO m => ByteArray -> Word32 -> m ()
Exported types
Instances
| BoxedObject ByteArray Source # | |
| (~) AttrOpTag tag AttrSet => Constructible ByteArray tag Source # | |
| ((~) * info (ResolveByteArrayMethod t ByteArray), MethodInfo * info ByteArray p) => IsLabel t (ByteArray -> p) Source # | |
| ((~) * info (ResolveByteArrayMethod t ByteArray), MethodInfo * info ByteArray p) => IsLabelProxy t (ByteArray -> p) Source # | |
| HasAttributeList * ByteArray Source # | |
| type AttributeList ByteArray Source # | |
newZeroByteArray :: MonadIO m => m ByteArray Source #
Construct a ByteArray struct initialized to zero.
Methods
free
byteArrayFree :: MonadIO m => ByteString -> Bool -> m Word8 Source #
freeToBytes
byteArrayFreeToBytes :: MonadIO m => ByteString -> m Bytes Source #
new
byteArrayNew :: MonadIO m => m ByteString Source #
newTake
byteArrayNewTake :: MonadIO m => ByteString -> m ByteString Source #
unref
byteArrayUnref :: MonadIO m => ByteString -> m () Source #
Properties
data
byteArray_data :: AttrLabelProxy "data" Source #
len
byteArray_len :: AttrLabelProxy "len" Source #