public CppProxyOutEndpoint(signals.IModule module, IntPtr native) { if (module == null) throw new ArgumentNullException("module"); if (native == IntPtr.Zero) throw new ArgumentNullException("native"); m_module = module; m_nativeRef = native; Registration.storeObject(native, this); m_native = (Native.IOutEndpoint)CppNativeProxy.CreateCallout(native, typeof(Native.IOutEndpoint)); interrogate(); }
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)); }