public CppProxyInputFunction(signals.IModule module, IntPtr native) : base(native) { if (module == null) throw new ArgumentNullException("module"); if (native == IntPtr.Zero) throw new ArgumentNullException("native"); m_module = module; m_nativeRecvRef = new IntPtr(native.ToInt64() + IntPtr.Size); m_nativeRecv = (Native.IEPRecvFrom)CppNativeProxy.CreateCallout(m_nativeRecvRef, typeof(Native.IEPRecvFrom)); }
public CppProxyEPRecvFrom(signals.IBlockDriver driver, IntPtr native) { if (driver == null) throw new ArgumentNullException("driver"); if (native == IntPtr.Zero) throw new ArgumentNullException("native"); m_driver = driver; m_nativeRef = native; Registration.storeObject(native, this); m_native = (Native.IEPRecvFrom)CppNativeProxy.CreateCallout(native, typeof(Native.IEPRecvFrom)); }