Skip to content

Commit

Permalink
[unity]IntPtr改为SlowBinding,fix #1923
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 22, 2024
1 parent 4ecf3e9 commit 0c886f8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,14 @@ static BindingMode FilterBigStructAndPointerOfPointer(MemberInfo memberInfo)
{
return BindingMode.DontBinding;
}
if (ptype.IsByRef || ptype.IsPointer || ptype == typeof(System.IntPtr) || ptype == typeof(System.UIntPtr))
if (ptype.IsByRef || ptype.IsPointer)
{
return BindingMode.DontBinding;
}
if (ptype == typeof(System.IntPtr) || ptype == typeof(System.UIntPtr))
{
return BindingMode.SlowBinding;
}
}
}

Expand Down

0 comments on commit 0c886f8

Please sign in to comment.