Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Jun 22, 2024

I believe the original docs for the return value of git_odb_stream_read might be incorrect. It currently says that it returns 0 on success. However, that means there would be no way to know how many bytes were actually saved to the buffer. loose_backend__readstream_read appears to return the total number of bytes read. I don't know if there are any other backends that implement readstream (I don't see any).

@ethomson
Copy link
Member

Good catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants