Ggit.Blob

g GObject.Object GObject.Object Ggit.ObjectFactoryBase Ggit.ObjectFactoryBase GObject.Object->Ggit.ObjectFactoryBase Ggit.Blob Ggit.Blob Ggit.Native Ggit.Native Ggit.Object Ggit.Object Ggit.Native->Ggit.Object Ggit.Object->Ggit.Blob Ggit.ObjectFactoryBase->Ggit.Native

Subclasses:

None

Methods

Inherited:

Ggit.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_raw_content ()

is_binary ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Ggit.Native (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Ggit.Blob(**kwargs)
Bases:

Ggit.Object

Abstract:

No

Structure:

Ggit.BlobClass

Represents a blob object.

get_raw_content()
Returns:

the blob content or None if the blob does not have any content.

Return type:

bytes or None

Gets a read-only buffer with the raw contents of self.

A pointer to the raw contents of self is returned. This pointer is owned internally by object and must not be free’d. The pointer may be invalidated at a later time.

is_binary()
Returns:

True if the blob is binary, False otherwise.

Return type:

bool

Check whether the blob is binary.