mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 08:06:04 +02:00
Trimmed reflected iface method table
This commit is contained in:
parent
7fdce4b5af
commit
7e111329c7
5 changed files with 26 additions and 20 deletions
|
@ -298,7 +298,10 @@ namespace System.Reflection
|
|||
if (interfaceData == null)
|
||||
return .Err(.InvalidTarget);
|
||||
|
||||
funcPtr = *(thisType.[Friend]mInterfaceMethodTable + interfaceData.mStartInterfaceTableIdx + mMethodData.mMethodIdx);
|
||||
int ifaceMethodIdx = interfaceData.mStartInterfaceTableIdx + mMethodData.mMethodIdx;
|
||||
if (ifaceMethodIdx >= thisType.[Friend]mInterfaceMethodCount)
|
||||
return .Err(.InvalidTarget);
|
||||
funcPtr = *(thisType.[Friend]mInterfaceMethodTable + ifaceMethodIdx);
|
||||
}
|
||||
|
||||
ifaceOffset = mTypeInstance.[Friend]mMemberDataOffset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue