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 |
Contains the public fields of a GByteArray.
- newtype ByteArray = ByteArray (ForeignPtr 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 ()
- byteArrayData :: AttrLabelProxy "data"
- byteArrayReadData :: MonadIO m => ByteArray -> m Word8
- byteArrayWriteData :: MonadIO m => ByteArray -> Word8 -> m ()
- byteArrayLen :: AttrLabelProxy "len"
- byteArrayReadLen :: MonadIO m => ByteArray -> m Word32
- byteArrayWriteLen :: MonadIO m => ByteArray -> Word32 -> m ()
Exported types
BoxedObject ByteArray | |
(~) AttrOpTag tag AttrSet => Constructible ByteArray tag | |
((~) * info (ResolveByteArrayMethod t ByteArray), MethodInfo * info ByteArray p) => IsLabelProxy t (ByteArray -> p) | |
type AttributeList ByteArray |
newZeroByteArray :: MonadIO m => m ByteArray Source
Construct a ByteArray
struct initialized to zero.
Methods
byteArrayFree
byteArrayFree :: MonadIO m => ByteString -> Bool -> m Word8 Source
byteArrayFreeToBytes
byteArrayFreeToBytes :: MonadIO m => ByteString -> m Bytes Source
byteArrayNew
byteArrayNew :: MonadIO m => m ByteString Source
byteArrayNewTake
byteArrayNewTake :: MonadIO m => ByteString -> m ByteString Source
byteArrayUnref
byteArrayUnref :: MonadIO m => ByteString -> m () Source
Properties
Data
byteArrayData :: AttrLabelProxy "data" Source
byteArrayReadData :: MonadIO m => ByteArray -> m Word8 Source
byteArrayWriteData :: MonadIO m => ByteArray -> Word8 -> m () Source
Len
byteArrayLen :: AttrLabelProxy "len" Source
byteArrayReadLen :: MonadIO m => ByteArray -> m Word32 Source
byteArrayWriteLen :: MonadIO m => ByteArray -> Word32 -> m () Source