Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make some Brotli p/invokes blittable#54029

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
stephentoub merged 2 commits intodotnet:mainfromelinor-fung:brotliBlittable
Jun 11, 2021

Conversation

@elinor-fung
Copy link
Member

Found that two of the Brotli p/invokes could easily be made blittable (inlinable during JIT) while prototyping aDllImport source generator.

cc@AaronRobinsonMSFT@jkoritzinsky

@ghost
Copy link

Tagging subscribers to this area: @dotnet/area-system-io-compression
See info inarea-owners.md if you want to be subscribed.

Issue Details

Found that two of the Brotli p/invokes could easily be made blittable (inlinable during JIT) while prototyping aDllImport source generator.

cc@AaronRobinsonMSFT@jkoritzinsky

Author:elinor-fung
Assignees:-
Labels:

area-System.IO.Compression

Milestone:-


[DllImport(Libraries.CompressionNative)]
internalstaticexternunsafeboolBrotliDecoderDecompress(nuintavailableInput,byte*inBytes,refnuintavailableOutput,byte*outBytes);
internalstaticexternunsafeintBrotliDecoderDecompress(nuintavailableInput,byte*inBytes,nuint*availableOutput,byte*outBytes);
Copy link
Member

@jkotasjkotasJun 10, 2021
edited
Loading

Choose a reason for hiding this comment

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

Should we make all of PInvokes in this file to returnint for consistency?

Also, would it make sense to useBOOL to make it clear that this is returning boolean value?

jkoritzinsky reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Are you talking about thatInterop.BOOL enum?

Copy link
Member

Choose a reason for hiding this comment

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

I believe so.

@stephentoubstephentoub merged commitef9e276 intodotnet:mainJun 11, 2021
@elinor-fungelinor-fung deleted the brotliBlittable branchJune 11, 2021 14:39
@ghostghost locked asresolvedand limited conversation to collaboratorsJul 11, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@jkoritzinskyjkoritzinskyjkoritzinsky approved these changes

@jkotasjkotasjkotas left review comments

@stephentoubstephentoubstephentoub approved these changes

@AaronRobinsonMSFTAaronRobinsonMSFTAaronRobinsonMSFT approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@elinor-fung@jkoritzinsky@stephentoub@jkotas@AaronRobinsonMSFT

[8]ページ先頭

©2009-2025 Movatter.jp