libgit2

git_odb_stream_write

Version:

Write to an odb stream

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

Signature

int git_odb_stream_write(git_odb_stream *stream, const char *buffer, size_t len);

Parameters

In
stream

the stream

const char *
In
buffer

the data to write

size_t
In
len

the buffer's length

Returns

int

0 if the write succeeded; error code otherwise

Versions