git_blob_create_from_buffer

Write an in-memory buffer to the ODB as a blob

extern (C) nothrow @nogc
int
git_blob_create_from_buffer

Parameters

id libgit2_d.oid.git_oid*

return the id of the written blob

repo libgit2_d.types.git_repository*

repository where to blob will be written

buffer const(void)*

data to be written into the blob

len size_t

length of the data

Return Value

Type: int

0 or an error code

Meta