gi-glib-2.0.2: GLib bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.ByteArray

Contents

Description

Contains the public fields of a GByteArray.

Synopsis

Exported types

newtype ByteArray Source #

Constructors

ByteArray (ForeignPtr ByteArray) 

Instances

BoxedObject ByteArray Source # 

Methods

boxedType :: ByteArray -> IO GType

(~) AttrOpTag tag AttrSet => Constructible ByteArray tag Source # 

Methods

new :: MonadIO m => (ForeignPtr ByteArray -> ByteArray) -> [AttrOp ByteArray tag] -> m ByteArray

((~) * info (ResolveByteArrayMethod t ByteArray), MethodInfo * info ByteArray p) => IsLabel t (ByteArray -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> ByteArray -> p

((~) * info (ResolveByteArrayMethod t ByteArray), MethodInfo * info ByteArray p) => IsLabelProxy t (ByteArray -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> ByteArray -> p

type AttributeList ByteArray Source # 
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 #