git_odb_write

Write an object directly into the ODB

This method writes a full object straight into the ODB. For most cases, it is preferred to write objects through a write stream, which is both faster and less memory intensive, specially for big objects.

This method is provided for compatibility with custom backends which are not able to support streaming writes

@param out_ pointer to store the OID result of the write @param odb object database where to store the object @param data buffer with the data to store @param len size of the buffer @param type type of the data to store @return 0 or an error code

extern (C) nothrow @nogc
int
git_odb_write

Meta