12 references to StubHelpers
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (2)
355s_NextCallReturnAddress ??= typeof(StubHelpers.StubHelpers).GetMethod(nameof(StubHelpers.StubHelpers.NextCallReturnAddress), BindingFlags.NonPublic | BindingFlags.Static)!;
src\System\StubHelpers.cs (10)
239bool hasTrailByte = StubHelpers.TryGetStringTrailByte(strManaged, out byte trailByte); 304StubHelpers.CheckStringLength(length); 323StubHelpers.SetStringTrailByte(ret, ((byte*)bstr)[length - 1]); 516return StubHelpers.AddToCleanupList(ref cleanupWorkList, handle); 1041StubHelpers.CheckStringLength(pManagedHomeCapacity); 1105StubHelpers.FmtClassUpdateNativeInternal(pManagedHome, (byte*)pNativeHome, ref cleanupWorkList); 1175StubHelpers.FmtClassUpdateCLRInternal(pManagedHome, (byte*)pNativeHome); 1226StubHelpers.DestroyCleanupList(ref cleanupWorkList); 1305StubHelpers.SafeHandleRelease(m_handle); 1311return StubHelpers.SafeHandleAddRef(m_handle, ref m_owned);