Skip to content

Redesign Block support to make it work with UnmanagedCallersOnlyAttribute #15783

@rolfbjarne

Description

@rolfbjarne
  • Add support to the BlockLiteral struct to accept function pointers.
  • Add support to the generator for the new block implementation.
  • Add support to our optimizations to handle the new block implementation.
  • Update all our manual binding code to use the new block implementation.

Ref: #10470 (comment)

Ideally any changes would also cover (which I've closed as duplicates of this issue):

Metadata

Metadata

Assignees

Labels

dotnetAn issue or pull request related to .NET (6)enhancementThe issue or pull request is an enhancementfeatureA feature to be implementedperformanceIf an issue or pull request is related to performancerequest-for-commentsThe issue is a suggested idea seeking feedback

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions