Пример #1
0
 internal override void OnDispose(IntPtr nativePtr)
 {
     if (m_Write != null)
     {
         m_Write = null;
         CfxApi.WriteHandler.cfx_write_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if (m_Seek != null)
     {
         m_Seek = null;
         CfxApi.WriteHandler.cfx_write_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     if (m_Tell != null)
     {
         m_Tell = null;
         CfxApi.WriteHandler.cfx_write_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero);
     }
     if (m_Flush != null)
     {
         m_Flush = null;
         CfxApi.WriteHandler.cfx_write_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero);
     }
     if (m_MayBlock != null)
     {
         m_MayBlock = null;
         CfxApi.WriteHandler.cfx_write_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }
Пример #2
0
 internal override void OnDispose(IntPtr nativePtr)
 {
     if (m_Read != null)
     {
         m_Read = null;
         CfxApi.cfx_read_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if (m_Seek != null)
     {
         m_Seek = null;
         CfxApi.cfx_read_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     if (m_Tell != null)
     {
         m_Tell = null;
         CfxApi.cfx_read_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero);
     }
     if (m_Eof != null)
     {
         m_Eof = null;
         CfxApi.cfx_read_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero);
     }
     if (m_MayBlock != null)
     {
         m_MayBlock = null;
         CfxApi.cfx_read_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }
Пример #3
0
 internal override void OnDispose(IntPtr nativePtr)
 {
     if(m_Write != null) {
         m_Write = null;
         CfxApi.cfx_write_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if(m_Seek != null) {
         m_Seek = null;
         CfxApi.cfx_write_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     if(m_Tell != null) {
         m_Tell = null;
         CfxApi.cfx_write_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero);
     }
     if(m_Flush != null) {
         m_Flush = null;
         CfxApi.cfx_write_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero);
     }
     if(m_MayBlock != null) {
         m_MayBlock = null;
         CfxApi.cfx_write_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }