libgit2

git_blob_set_rawcontent

Version:

Fill a blob with the contents inside the pointed buffer

Signature

int git_blob_set_rawcontent(git_blob *blob, const void *buffer, size_t len);

Parameters

git_blob *
In
blob

pointer to the blob

const void *
In
buffer

buffer with the contents for the blob

size_t
In
len

size of the buffer

Returns

int

0 on success; error code otherwise

Versions