Пример #1
0
 public static extern int mamaIo_create(
     ref IntPtr result,
     IntPtr queue,
     uint descriptor,
     MamaIoDelegate action,
     int ioType,
     IntPtr closure);
Пример #2
0
        /// <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);
        }
Пример #3
0
		/// <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;
		}
Пример #4
0
 /// <summary>
 /// <see cref="M:Wombat.MamaWrapper.#ctor(System.IntPtr)" />
 /// </summary>
 internal MamaIo(IntPtr nativeHandle) : base(nativeHandle)
 {
     // Create the delegate
     mIoDelegate = new MamaIoDelegate(onIo);
 }
Пример #5
0
 /// <summary>
 /// <see cref="M:Wombat.MamaWrapper.#ctor" />
 /// </summary>
 public MamaIo() : base()
 {
     // Create the delegate
     mIoDelegate = new MamaIoDelegate(onIo);
 }
Пример #6
0
		/// <summary>
		/// <see cref="M:Wombat.MamaWrapper.#ctor(System.IntPtr)" />
		/// </summary>
		internal MamaIo(IntPtr nativeHandle) : base(nativeHandle)
		{
            // Create the delegate
            mIoDelegate = new MamaIoDelegate(onIo);
		}
Пример #7
0
		/// <summary>
		/// <see cref="M:Wombat.MamaWrapper.#ctor" />
		/// </summary>
		public MamaIo() : base()
		{
            // Create the delegate
            mIoDelegate = new MamaIoDelegate(onIo);
		}
Пример #8
0
			public static extern int mamaIo_create(
				ref IntPtr result,
				IntPtr queue,
				uint descriptor,
				MamaIoDelegate action, 
				int ioType,
				IntPtr closure);