libgit2

git_blob_rawcontent

Version:

Get a read-only buffer with the raw content of a blob.

A pointer to the raw content of a blob is returned; this pointer is owned internally by the object and shall not be free'd. The pointer may be invalidated at a later time (e.g. when changing the contents of the blob).

Signature

const void *git_blob_rawcontent(git_blob *blob);

Parameters

In
blob

pointer to the blob

Returns

const void *

the pointer; NULL if the blob has no contents

Versions