gi-soup-0.2.52.13: Soup 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.Soup.Structs.Buffer

Contents

Description

A data buffer, generally used to represent a chunk of a #SoupMessageBody.

@data is a #char because that's generally convenient; in some situations you may need to cast it to #guchar or another type.

Synopsis

Exported types

newtype Buffer Source

Constructors

Buffer (ForeignPtr Buffer) 

Instances

BoxedObject Buffer Source 

Methods

boxedType :: Buffer -> IO GType

((~) * info (ResolveBufferMethod t Buffer), MethodInfo * info Buffer p) => IsLabel t (Buffer -> p) Source 

Methods

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

((~) * info (ResolveBufferMethod t Buffer), MethodInfo * info Buffer p) => IsLabelProxy t (Buffer -> p) Source 

Methods

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

((~) (TYPE Lifted) signature (Word64 -> Word64 -> m Buffer), MonadIO m) => MethodInfo (TYPE Lifted) BufferNewSubbufferMethodInfo Buffer signature Source 
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) BufferGetOwnerMethodInfo Buffer signature Source 
((~) (TYPE Lifted) signature (m ByteString), MonadIO m) => MethodInfo (TYPE Lifted) BufferGetDataMethodInfo Buffer signature Source 
((~) (TYPE Lifted) signature (m Bytes), MonadIO m) => MethodInfo (TYPE Lifted) BufferGetAsBytesMethodInfo Buffer signature Source 
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) BufferFreeMethodInfo Buffer signature Source 
((~) (TYPE Lifted) signature (m Buffer), MonadIO m) => MethodInfo (TYPE Lifted) BufferCopyMethodInfo Buffer signature Source 

newZeroBuffer :: MonadIO m => m Buffer Source

Construct a Buffer struct initialized to zero.

Methods

bufferCopy

bufferFree

data BufferFreeMethodInfo Source

Instances

((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) BufferFreeMethodInfo Buffer signature Source 

bufferGetAsBytes

bufferGetData

bufferGetOwner

bufferNew

bufferNewSubbuffer

bufferNewWithOwner

bufferNewWithOwner :: MonadIO m => ByteString -> Ptr () -> Maybe DestroyNotify -> m Buffer Source

Properties

Data

Length