pointer where to store the stream
pointer where to store the length of the object
pointer where to store the type of the object
object database where the stream will read from
oid of the object the stream will read from
0 if the stream was created; error code otherwise
Open a stream to read an object from the ODB
Note that most backends do *not* support streaming reads because they store their objects as compressed/delta'ed blobs.
It's recommended to use git_odb_read instead, which is assured to work on all backends.
The returned stream will be of type git_odb_stream_t.GIT_STREAM_RDONLY and will have the following methods:
- stream->read: read n bytes from the stream - stream->free: free the stream
The stream must always be free'd or will leak memory.
@see git_odb_stream