I am trying to understand InternalCalls. The book says: “InternalCall means that the method is a stub for an unmanaged code implementation, which is provided at runtime by a hard-coded lookup map contained in the CLR.” So, if I understand it correctly, I can call a method marked as InternalCall myself in any part of my code. Is that correct?
I have tried calling:
Private m_baseAddress, m_size As UInteger Sub Test() NativeGetRlpInfo(m_baseAddress, m_size) End Sub <MethodImpl(MethodImplOptions.InternalCall)> Private Sub NativeGetRlpInfo(ByRef address As UInteger, ByRef size As UInteger) End Sub
But that gave me CLR_E_NOT_SUPPORTED exception. Same happens with [em]NativeLoadElf[/em] and others. Why?