Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@Rob-Hague
Copy link
Collaborator

  • SftpClient.ReadAllBytes does one call to SftpFileStream.Read. This is fine because SftpFileStream.Read currently fills the caller's buffer, but it may not always be the case, so for correctness we call ReadExactly (polyfilled on lower targets).

  • IEnumerable<string> ReadLines currently calls string[] ReadAllLines. We invert this relationship so that ReadLines enumerates lazily. This is fine by contract but may cause behavioural breaks. Will call it out in release notes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.