git_buf.asize

asize holds the known total amount of allocated memory if the ptr_ was allocated by libgit2. It may be larger than size. If ptr_ was not allocated by libgit2 and should not be resized and/or freed, then asize will be set to zero.

struct git_buf
size_t asize;

Meta