gi-ggit-1.0.9: 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

Description

Represents a diff binary file.

Synopsis

Exported types

newtype DiffBinaryFile Source #

Memory-managed wrapper type.

Constructors

DiffBinaryFile (ManagedPtr DiffBinaryFile) 

Instances

Instances details
Eq DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

GBoxed DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

ManagedPtrNewtype DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

TypedObject DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

Methods

glibType :: 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

HasParentTypes DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

type ParentTypes DiffBinaryFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinaryFile

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

Methods

Overloaded methods

getBinaryType

diffBinaryFileGetBinaryType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a DiffBinaryFile.

-> m DiffBinaryType

Returns: the file's binary type.

Gets the DiffBinaryType for file.

getData

diffBinaryFileGetData Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinaryFile

file: a DiffBinaryFile.

-> Word64

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 DiffBinaryFile.

-> m Word64

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 Diff.

-> m DiffBinaryFile

Returns: a DiffBinaryFile.

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 DiffBinaryFile.

-> m () 

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