Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Removed Position.End #1988

Merged
merged 1 commit into from
Dec 19, 2017

Conversation

KrzysztofCwalina
Copy link
Member

@KrzysztofCwalina KrzysztofCwalina commented Dec 19, 2017

cc: @pakrym, @davidfowl, @joshfree, @ahsonkhan

When sequences move to end default(Position) is returned from TryGet
Before calling ISequence.TryGet for the first time, the calling code has to call ISequence.First, as default position no longer mean the first item (necessarily)
APIs like buffer.PositionOf(byte value) return Position? (nullable). They return null if value is not found

All these changes were requested by @pakrym to allow him to use Position in pipelines instead of ReadCursor.

@KrzysztofCwalina
Copy link
Member Author

@dotnet-bot test Innerloop Ubuntu16.04 Release Build and Test

@KrzysztofCwalina KrzysztofCwalina merged commit 6226826 into dotnet:master Dec 19, 2017
@KrzysztofCwalina KrzysztofCwalina deleted the PositionCleanup branch January 3, 2018 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant