libgit2_d.buffer

Undocumented in source.

Members

Functions

GIT_BUF_INIT_CONST
GIT_BUF_INIT_CONST(char* STR, size_t LEN)

Static initializer for git_buf from static buffer

git_buf_contains_nul
int git_buf_contains_nul(const(.git_buf)* buf)

Check quickly if buffer contains a NUL byte

git_buf_dispose
void git_buf_dispose(.git_buf* buffer)

Free the memory referred to by the git_buf.

git_buf_grow
int git_buf_grow(.git_buf* buffer, size_t target_size)

Resize the buffer allocation to make more space.

git_buf_is_binary
int git_buf_is_binary(const(.git_buf)* buf)

Check quickly if buffer looks like it contains binary data

git_buf_set
int git_buf_set(.git_buf* buffer, const(void)* data, size_t datalen)

Set buffer to a copy of some raw data.

Structs

git_buf
struct git_buf

A data buffer for exporting data from libgit2

Meta