git_odb_stream_finalize_write

Finish writing to an odb stream

The object will take its final name and will be available to the odb.

This method will fail if the total number of received bytes differs from the size declared with git_odb_open_wstream()

extern (C) nothrow @nogc
int
git_odb_stream_finalize_write

Parameters

out_ libgit2_d.oid.git_oid*

pointer to store the resulting object's id

stream libgit2_d.types.git_odb_stream*

the stream

Return Value

Type: int

0 on success; an error code otherwise

Meta