Uh oh!
There was an error while loading. Please reload this page.
[release/11.0] Add SequenceReaderExtensions.TryPeekEndian - #132574
[release/11.0] Add SequenceReaderExtensions.TryPeekEndian#132574github-actions[bot] wants to merge 1 commit into
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Tagging subscribers to this area: @dotnet/area-system-memory |
jeffhandley
commented
Aug 20, 2026
jeffhandley
commented
Aug 20, 2026
@artl93 This does not strictly meet the bar, so I was on the fence for bringing it for consideration. The standalone aspect and tangential relation to other feature areas made me want to run it by you for consideration. |
artl93
commented
Aug 21, 2026
@jeffhandley - I'm struggling with this one too - the timing is unfortunate, since we're locking down. This doesn't strike me as a quality or scenario completeness improvement based on the description or the API request. Is there more context? |
jeffhandley
commented
Aug 21, 2026
@artl93 -- Thanks for considering it. I thought it was worth consideration since it's in the same spirit of some other work in .NET 11 even though it's not directly related, but we can reject this one and let it get introduced in .NET 12. /cc @tannergooding |
Customer Impact
Adds the
SequenceReader<byte>TryPeekLittleEndianandTryPeekBigEndianextension methods, allowing callers to inspect numeric values without advancing the reader. This addresses customer demand captured in API proposal #116414 and backports the API addition from #130178. It is not strictly associated with other .NET 11 features, and does not change existing behavior.Regression
Testing
The API and behavior are covered by the tests included in #130178. The tests verify little-endian and big-endian peeking, including insufficient data, and that peeking does not advance the reader.
Risk
Low. This adds new API surface area on top of what is included in RC1, but it is a focused, additive API with isolated implementation and tests. It does not alter existing APIs or behavior. Other endian-aware
SequenceReaderAPIs remain outside the scope of this backport.