git_blob_rawcontent

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.

extern (C) nothrow @nogc public
const(void)*
git_blob_rawcontent

Parameters

blob const(libgit2.types.git_blob)*

pointer to the blob

Return Value

Type: const(void)*

the pointer, or null on error

Meta