Ggit.DiffBinaryFile

Fields

None

Methods

get_binary_type ()

get_data (size)

get_inflated_size ()

ref ()

unref ()

Details

class Ggit.DiffBinaryFile

Represents a diff binary file.

get_binary_type()
Returns:

the file’s binary type.

Return type:

Ggit.DiffBinaryType

Gets the Ggit.DiffBinaryType for self.

get_data(size)
Parameters:

size (int or None) – location to return size of byte data.

Returns:

a pointer to the binary data, or None.

Return type:

int

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

get_inflated_size()
Returns:

the length of the binary data after inflation.

Return type:

int

Gets the length of the binary data after inflation.

ref()
Returns:

a Ggit.DiffBinaryFile.

Return type:

Ggit.DiffBinaryFile

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

unref()

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