-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add Process.ReadAllLines synchronous API #127106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a6f9c67
Add Process.ReadAllLines synchronous API with platform-specific imple…
Copilot ab4eca9
Move buffer renting into iterator for proper cleanup, remove unnecess…
Copilot b0ed0c6
Fix encoding: use Decoder-based char-level line scanning for correct …
Copilot 1665be6
Remove unused using System.Runtime.InteropServices from Process.Multi…
Copilot 711986f
Add BOM-stripping for sync ReadAllLines and encoding tests for UTF-8/…
Copilot 0dcc7f8
Add XML param docs to SkipBomIfPresent
Copilot 7fdd0ea
Optimize DecodeAndAppendChars to compact before growing when startInd…
Copilot 421cb5d
Only compact char buffer when it frees enough space to avoid wasteful…
Copilot 6436c51
Address review feedback: handle \r line endings, make RentLargerBuffe…
Copilot 856cd0e
Extract PollForPipeActivity helper to deduplicate poll logic in Unix
Copilot 9c517c8
Merge remote-tracking branch 'origin/main' into copilot/add-readallli…
Copilot 33b5d6a
Fix build: use ProcessUtils.ToTimeoutMilliseconds, remove redundant E…
Copilot 14a9071
Address feedback: inline PollPipes, remove DangerousAddRef on Windows…
Copilot 9b51e98
Use single triggered variable in PollForPipeActivity
Copilot 658e832
Always compact before growing in DecodeAndAppendChars; fix RentLarger…
Copilot 1f1f41a
Restore stackalloc in ReadPipes; accept Span in PollForPipeActivity/P…
Copilot 62d57a0
Merge branch 'main' into copilot/add-readalllines-to-process
adamsitnik e4e05db
reduce code duplication:
adamsitnik 7c196cc
Fix DecodeAndAppendChars early return, use single byte buffer on Unix…
Copilot f583fca
Address review feedback: byte-level preamble/encoding detection, remo…
Copilot 8936fe6
Add missing using System.IO to ProcessStreamingTests.cs to fix build
Copilot d19dd3e
Fix multi-byte split test to use raw bytes; add mixed line endings test
Copilot c8bda3e
Fix partial UTF-32 BOM across reads; restore non-blocking mode in fin…
Copilot 5f740c5
Revert "Fix partial UTF-32 BOM across reads; restore non-blocking mod…
adamsitnik 32043d7
keep reading until we have enough bytes to recognize the encoding, em…
adamsitnik 804f781
Apply suggestions from code review
adamsitnik 6340d76
address code review feedback: handle preamble/encoding for very short…
adamsitnik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.