libgit2

git_stream_read_cb

Version:

Read from the stream.

Signature

typedef ssize_t git_stream_read_cb(git_stream *stream, void *buf, size_t size);

Parameters

In
stream

the stream to read from

void *
In
buf

the buffer to write to

size_t
In
size

the size of the buffer

Returns

ssize_t

the number of bytes read, or an error code

Versions