gi-ggit-1.0.8: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.DiffBinaryFile

Contents

Description

Represents a diff binary file.

Synopsis

Exported types

newtype DiffBinaryFile Source #

Memory-managed wrapper type.

Constructors

DiffBinaryFile (ManagedPtr DiffBinaryFile) 
Instances
Eq DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

BoxedObject DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

Methods

boxedType :: DiffBinaryFile -> IO GType

IsGValue DiffBinaryFile Source #

Convert DiffBinaryFile to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

Methods

toGValue :: DiffBinaryFile -> IO GValue

fromGValue :: GValue -> IO DiffBinaryFile

noDiffBinaryFile :: Maybe DiffBinaryFile Source #

A convenience alias for Nothing :: Maybe DiffBinaryFile.

Methods

Overloaded methods

getBinaryType

diffBinaryFileGetBinaryType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a tDiffBinaryFile.

-> m DiffBinaryType

Returns: the file's binary type.

Gets the tDiffBinaryType for file.

getData

diffBinaryFileGetData Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a tDiffBinaryFile.

-> Word32

size: location to return size of byte data.

-> m Word8

Returns: a pointer to the binary data, or Nothing.

Get the binary data. This data should not be modified.

getInflatedSize

diffBinaryFileGetInflatedSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a tDiffBinaryFile.

-> m Word32

Returns: the length of the binary data after inflation.

Gets the length of the binary data after inflation.

ref

diffBinaryFileRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a tDiff.

-> m DiffBinaryFile

Returns: a tDiffBinaryFile.

Atomically increments the reference count of file by one. This function is MT-safe and may be called from any thread.

unref

diffBinaryFileUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a tDiffBinaryFile.

-> m () 

Atomically decrements the reference count of file by one. If the reference count drops to 0, file is freed.