git_buf_set

Set buffer to a copy of some raw data.

extern (C) nothrow @nogc
int
git_buf_set
(,
const(void)* data
,
size_t datalen
)

Parameters

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