gi-glib-2.0.10: 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.MemVTable

Contents

Description

A set of functions used to perform memory allocation. The same #GMemVTable must be used for all allocations in the same program; a call to g_mem_set_vtable(), if it exists, should be prior to any use of GLib.

This functions related to this has been deprecated in 2.46, and no longer work.

Synopsis

Exported types

newtype MemVTable Source #

Constructors

MemVTable (ManagedPtr MemVTable) 

Instances

WrappedPtr MemVTable Source # 
(~) AttrOpTag tag AttrSet => Constructible MemVTable tag Source # 

Methods

new :: MonadIO m => (ManagedPtr MemVTable -> MemVTable) -> [AttrOp MemVTable tag] -> m MemVTable

((~) * info (ResolveMemVTableMethod t MemVTable), MethodInfo * info MemVTable p) => IsLabel t (MemVTable -> p) Source # 

Methods

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

((~) * info (ResolveMemVTableMethod t MemVTable), MethodInfo * info MemVTable p) => IsLabelProxy t (MemVTable -> p) Source # 

Methods

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

HasAttributeList * MemVTable Source # 
type AttributeList MemVTable Source # 
type AttributeList MemVTable

newZeroMemVTable :: MonadIO m => m MemVTable Source #

Construct a MemVTable struct initialized to zero.

Properties

calloc

memVTable_calloc :: AttrLabelProxy "calloc" Source #

free

memVTable_free :: AttrLabelProxy "free" Source #

malloc

memVTable_malloc :: AttrLabelProxy "malloc" Source #

realloc

memVTable_realloc :: AttrLabelProxy "realloc" Source #

tryMalloc

memVTable_tryMalloc :: AttrLabelProxy "tryMalloc" Source #

tryRealloc

memVTable_tryRealloc :: AttrLabelProxy "tryRealloc" Source #