gi-ggit-1.0.11: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Ggit.Structs.DiffBinaryFile

Description

Represents a diff binary file.

Synopsis

Exported types

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getBinaryType, getData, getInflatedSize.

Setters

None.

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.