xamarin / binding-tools-for-swift

MIT License
160 stars 21 forks source link

trying a marshaling experiment #789

Closed stephen-hawley closed 11 months ago

stephen-hawley commented 11 months ago

This is an experiment to find out if we can use "standard" opaque structs in place of our usual marshaling. This is in preparation for (hopefully) the runtime providing the ability to directly marshal value types of up to 4 machine words (swift ABI) instead of being limited to 2.

Using opaque structs is more elegant and less heavy handed than what we do in most cases, although it is still heavy handed.

In the process, I added a few goodies to Dynamo to generate the code that I wanted in C# more easily.

All tests pass.