gi-vips-8.0.2: libvips GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Vips.Structs.Blob

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Blob Source #

Memory-managed wrapper type.

Constructors

Blob (ManagedPtr Blob) 

Instances

Instances details
Eq Blob Source # 
Instance details

Defined in GI.Vips.Structs.Blob

Methods

(==) :: Blob -> Blob -> Bool #

(/=) :: Blob -> Blob -> Bool #

GBoxed Blob Source # 
Instance details

Defined in GI.Vips.Structs.Blob

ManagedPtrNewtype Blob Source # 
Instance details

Defined in GI.Vips.Structs.Blob

TypedObject Blob Source # 
Instance details

Defined in GI.Vips.Structs.Blob

Methods

glibType :: IO GType #

HasParentTypes Blob Source # 
Instance details

Defined in GI.Vips.Structs.Blob

tag ~ 'AttrSet => Constructible Blob tag Source # 
Instance details

Defined in GI.Vips.Structs.Blob

Methods

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

IsGValue (Maybe Blob) Source #

Convert Blob to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Vips.Structs.Blob

type ParentTypes Blob Source # 
Instance details

Defined in GI.Vips.Structs.Blob

type ParentTypes Blob = '[] :: [Type]

newZeroBlob :: MonadIO m => m Blob Source #

Construct a Blob struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

get.

Getters

None.

Setters

None.

copy

blobCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ByteString

data: data to store

-> m Blob

Returns: the new Blob.

Like blobNew, but take a copy of the data. Useful for bindings which strugle with callbacks.

See also: blobNew.

get

blobGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Blob

blob: Blob to fetch from

-> m ByteString

Returns: the data

Get the data from a Blob.

See also: blobNew.

new

blobNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe CallbackFn

freeFn: data will be freed with this function

-> ByteString

data: data to store

-> m Blob

Returns: the new Blob.

Like areaNew, but track a length as well. The returned Blob takes ownership of data and will free it with freeFn. Pass NULL for freeFn to not transfer ownership.

An area of mem with a free func and a length (some sort of binary object, like an ICC profile).

See also: areaUnref.

Properties

area

No description available in the introspection data.

getBlobArea :: MonadIO m => Blob -> m Area Source #

Get the value of the “area” field. When overloading is enabled, this is equivalent to

get blob #area