libgit2_d.sys.odb_backend

Undocumented in source.

Members

Functions

GIT_ODB_BACKEND_INIT
GIT_ODB_BACKEND_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_odb_backend_data_alloc
void* git_odb_backend_data_alloc(.git_odb_backend* backend, size_t len)

Allocate data for an ODB object. Custom ODB backends may use this to provide data back to the ODB from their read function. This memory should not be freed once it is returned to libgit2. If a custom ODB uses this function but encounters an error and does not return this data to libgit2, then they should use the corresponding git_odb_backend_data_free function.

git_odb_backend_data_free
void git_odb_backend_data_free(.git_odb_backend* backend, void* data)

Frees custom allocated ODB data. This should only be called when memory allocated using git_odb_backend_data_alloc is not returned to libgit2 because the backend encountered an error in the read function after allocation and did not return this data to libgit2.

git_odb_backend_malloc
deprecated void* git_odb_backend_malloc(.git_odb_backend* backend, size_t len)

Allocate memory for an ODB object from a custom backend. This is an alias of git_odb_backend_data_alloc and is preserved for backward compatibility.

git_odb_init_backend
int git_odb_init_backend(.git_odb_backend* backend, uint version_)

Initializes a git_odb_backend with default values. Equivalent to creating an instance with GIT_ODB_BACKEND_INIT.

Manifest constants

GIT_ODB_BACKEND_VERSION
enum GIT_ODB_BACKEND_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_odb_backend
struct git_odb_backend

An instance for a custom backend

Meta