git_buf_set

Set buffer to a copy of some raw data.

version(!GIT_DEPRECATE_HARD)
extern (C) nothrow @nogc public deprecated
int
git_buf_set
(,
const(void)* data
,
size_t datalen
)

Parameters

buffer libgit2.buffer.git_buf*

The buffer to set

data const(void)*

The data to copy into the buffer

datalen size_t

The length of the data to copy into the buffer

Return Value

Type: int

0 on success, -1 on allocation failure

Meta