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

Fix the build after System.Memory update #1408

Closed
wants to merge 1 commit into from

Conversation

KrzysztofCwalina
Copy link
Member

@KrzysztofCwalina
Copy link
Member Author

KrzysztofCwalina commented Mar 31, 2017

This just fixes compilation errors. I think the tests still fail with span being on the heap. In addition, there are massive breaks as AsSpan seem to be not implemented. I think it has something to do with the adaptive package for System.Memory being messed up.

@@ -60,7 +60,7 @@ public static int Seek(ReadCursor begin, ReadCursor end, out ReadCursor result,
var segment = segmentPart.Segment;
var span = segment.Buffer.Span.Slice(segmentPart.Start, segmentPart.Length);

int index = span.IndexOfAny(byte0, byte1, byte2);
int index = System.SpanExtensions.IndexOfAny(span, byte0, byte1, byte2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are unnecessary since we have IndexOfAny now, as of dotnet/corefx#17357

@ahsonkhan
Copy link
Contributor

ahsonkhan commented Mar 31, 2017

These changes are redundant to the changes made in this PR (and are a subset):
#1373 & #1357

@KrzysztofCwalina
Copy link
Member Author

closing

@KrzysztofCwalina
Copy link
Member Author

OK, so it seems like #17744 will fix this. Thanks.

@KrzysztofCwalina KrzysztofCwalina deleted the FixBuild branch April 25, 2017 17:07
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.

3 participants