git_odb_open_rstream

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

@param out_ pointer where to store the stream @param len pointer where to store the length of the object @param type pointer where to store the type of the object @param db object database where the stream will read from @param oid oid of the object the stream will read from @return 0 if the stream was created; error code otherwise

Meta