dotnet/runtime
Auf GitHub ansehenReadOnlySequence<T>.TryGet() returns empty result
Open
#27.769 geöffnet am 30. Okt. 2018
area-System.Memorybughelp wanted
Repository-Metriken
- Stars
- (17.886 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 12T 11h) (661 gemergte PRs in 30 T)
Beschreibung
When calling ReadOnlySequence<T>.TryGet(ref position, out memory) with a position of sequence.End or sequence.GetPosition(size) the result is true and memory is an empty slice. As this effectively is not returning a segment or byte, is should probably return false.
As per this comment from @pakrym, I'm raising as a seperate issue.