Exemple #1
0
    private static void CallStructFieldPInvoke(ref Foo fi)
    {
        Fooer fooer = new() { F = fi };

        fooer.F = AliasingRetBufNative.TransposeRetBufPtr(&fooer.F);
        fi      = fooer.F;
    }
Exemple #2
0
 private static void CallPtrPInvoke(Foo *fi)
 {
     *fi = AliasingRetBufNative.TransposeRetBufPtr(fi);
 }