Skip to content
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

Seal and update IFilters to return ReadOnlyMemory<byte> #843

Merged
merged 5 commits into from
Jun 8, 2024

Conversation

BobLd
Copy link
Collaborator

@BobLd BobLd commented Jun 2, 2024

No description provided.

@BobLd BobLd requested a review from EliotJones June 3, 2024 22:38
@BobLd
Copy link
Collaborator Author

BobLd commented Jun 3, 2024

@EliotJones now good to go

@@ -22,7 +22,7 @@ public void DecodesWikipediaExample()

var result = filter.Decode(bytes, dictionary, 0);

var text = Encoding.ASCII.GetString(result);
var text = Encoding.ASCII.GetString(result.ToArray());
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Oh, span vs memory, all this stuff is new to me, any way to returns spans instead or they're only local to the method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do have 2 extension methods for !NET version (in 2 different pdfpig) that are internal, but accessible from the test project. They create a conflict here as the test project cannot pick one of the 2. Hence the need to use non extensions methods

@BobLd BobLd merged commit affc1ed into UglyToad:master Jun 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants