1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 02:13:38 +09:00
Commit graph

8 commits

Author SHA1 Message Date
Jeremy Koritzinsky
2eaa57c45c
Add NFloat as an interop intrinsic for the source generator (#88257) 2023-06-30 11:30:22 -07:00
Jeremy Koritzinsky
cdd7566751
Specially consider CLong, CULong and Guid strictly blittable (#88213) 2023-06-29 19:58:29 -07:00
Jeremy Koritzinsky
fdb5ac7d45
Add marshallers for GeneratedComInterface-based types (#86177) 2023-05-19 18:59:29 -07:00
Jeremy Koritzinsky
5e0044f60c
Add new SafeHandleMarshaller type to provide out-of-generator marshalling support. (#85419)
Fixes #74035

We can't remove the built-in marshalling support from the generator yet, but once the out-of-band packages we ship don't support .NET 6. we can remove the built-in support that emits the marshalling code in the stub. I believe the .NET 9 packages won't support .NET 6, so once we snap for .NET 9 and update how we ship the packages, we can clean this up.

This PR also adds a requested feature to the SafeHandle marshaller: If the call to native code fails, we'll call Dispose() on the pre-allocated handle to avoid leaking it to the finalizer queue.
2023-05-03 11:28:53 -07:00
Jeremy Koritzinsky
9e8c7a8f65
Update design docs to reflect our new marshaller design from partner feedback (#71017)
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Elinor Fung <elfung@microsoft.com>
2022-06-22 20:17:54 -07:00
Elinor Fung
f502039f39
[LibraryImportGenerator] Add/use CustomTypeMarshaller implementations for string marshalling (#67635) 2022-04-14 16:33:38 -07:00
Elinor Fung
c2ec86b1c5
Rename GeneratedDllImportAttribute -> LibraryImportAttribute (#66307) 2022-03-09 18:07:52 -08:00
Elinor Fung
a0635832f1
Rename DllImportGenerator project to LibraryImportGenerator (#66029) 2022-03-03 22:17:23 -08:00
Renamed from docs/design/libraries/DllImportGenerator/Compatibility.md (Browse further)