public static extern int mamaIo_create( ref IntPtr result, IntPtr queue, uint descriptor, MamaIoDelegate action, int ioType, IntPtr closure);
/// <summary> /// Implements the destruction of the underlying peer object. /// <seealso cref="MamaWrapper.DestroyNativePeer"/> /// </summary> protected override MamaStatus.mamaStatus DestroyNativePeer() { // Destroy the native object int code = NativeMethods.mamaIo_destroy(nativeHandle); // Clear the delegate to ensure that it is collected mIoDelegate = null; return((MamaStatus.mamaStatus)code); }
/// <summary> /// Implements the destruction of the underlying peer object. /// <seealso cref="MamaWrapper.DestroyNativePeer"/> /// </summary> protected override MamaStatus.mamaStatus DestroyNativePeer() { // Destroy the native object int code = NativeMethods.mamaIo_destroy(nativeHandle); // Clear the delegate to ensure that it is collected mIoDelegate = null; return (MamaStatus.mamaStatus)code; }
/// <summary> /// <see cref="M:Wombat.MamaWrapper.#ctor(System.IntPtr)" /> /// </summary> internal MamaIo(IntPtr nativeHandle) : base(nativeHandle) { // Create the delegate mIoDelegate = new MamaIoDelegate(onIo); }
/// <summary> /// <see cref="M:Wombat.MamaWrapper.#ctor" /> /// </summary> public MamaIo() : base() { // Create the delegate mIoDelegate = new MamaIoDelegate(onIo); }