A stream to read/write from a backend.
This represents a stream of data being written to or read from a
backend. When writing, the frontend functions take care of
calculating the object's id and all finalize_write
needs to do is
store the object with the id it is passed.
Write at most len
bytes into buffer
and advance the stream.
Write len
bytes from buffer
into the stream.
Store the contents of the stream as an object with the id specified in oid
.
This method might not be invoked if:
write
callback,oid
already exists in any backend, orgit_odb_open_wstream()
Free the stream's memory.
This method might be called without a call to finalize_write
if an error occurs or if the object is already present in the ODB.