gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.DiffBinaryFile

Contents

Description

Represents a diff binary file.

Synopsis

Exported types

newtype DiffBinaryFile Source #

Memory-managed wrapper type.

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.