Improve struct access
Opened this issue · 0 comments
badcel commented
Currently structs in the internal namespace use non blitable types like strings or delegates. This results in the LayoutKind attribute to be implicitly changed to "Auto".
Using blitable types should allow to use Unsafe.AsRef
to access those types without creating a copy of the data.
To confirm this behavior test with the TypeInfo
struct in GObject.Internal.TypeRegistrar
first.