libgit2

git_odb_stream_read

Version:

Read from an odb stream

Most backends don't implement streaming reads

Signature

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

Parameters

In
stream

the stream

char *
In
buffer

a user-allocated buffer to store the data in.

size_t
In
len

the buffer's length

Returns

int

0 if the read succeeded, error code otherwise

Versions