gi-soup-0.2.52.15: 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 
(~) AttrOpTag tag AttrSet => Constructible Buffer tag 
((~) * signature (Word64 -> Word64 -> m Buffer), MonadIO m) => MethodInfo * BufferNewSubbufferMethodInfo Buffer signature 
((~) * signature (m (Ptr ())), MonadIO m) => MethodInfo * BufferGetOwnerMethodInfo Buffer signature 
((~) * signature (m ByteString), MonadIO m) => MethodInfo * BufferGetDataMethodInfo Buffer signature 
((~) * signature (m Bytes), MonadIO m) => MethodInfo * BufferGetAsBytesMethodInfo Buffer signature 
((~) * signature (m ()), MonadIO m) => MethodInfo * BufferFreeMethodInfo Buffer signature 
((~) * signature (m Buffer), MonadIO m) => MethodInfo * BufferCopyMethodInfo Buffer signature 
((~) * info (ResolveBufferMethod t Buffer), MethodInfo * info Buffer p) => IsLabelProxy t (Buffer -> p) 
type AttributeList Buffer 

newZeroBuffer :: MonadIO m => m Buffer Source

Construct a Buffer struct initialized to zero.

Methods

bufferCopy

data BufferCopyMethodInfo Source

Instances

((~) * signature (m Buffer), MonadIO m) => MethodInfo * BufferCopyMethodInfo Buffer signature 

bufferFree

data BufferFreeMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * BufferFreeMethodInfo Buffer signature 

bufferGetAsBytes

data BufferGetAsBytesMethodInfo Source

Instances

((~) * signature (m Bytes), MonadIO m) => MethodInfo * BufferGetAsBytesMethodInfo Buffer signature 

bufferGetData

data BufferGetDataMethodInfo Source

Instances

((~) * signature (m ByteString), MonadIO m) => MethodInfo * BufferGetDataMethodInfo Buffer signature 

bufferGetOwner

data BufferGetOwnerMethodInfo Source

Instances

((~) * signature (m (Ptr ())), MonadIO m) => MethodInfo * BufferGetOwnerMethodInfo Buffer signature 

bufferNew

bufferNewSubbuffer

data BufferNewSubbufferMethodInfo Source

Instances

((~) * signature (Word64 -> Word64 -> m Buffer), MonadIO m) => MethodInfo * BufferNewSubbufferMethodInfo Buffer signature 

bufferNewWithOwner

Properties

Data

bufferWriteData :: MonadIO m => Buffer -> Ptr () -> m () Source

Length