Esempio n. 1
0
 public void ReadStop()
 {
     if (!_GCHandle.IsAllocated)
     {
         return;
     }
     LibUv.ReadStop(this);
     LibUv.BufferStruct bufferStruct = LibUv.CreateBufferStruct(IntPtr.Zero, 0);
     UbReadCb(handle, 0, ref bufferStruct);
 }
Esempio n. 2
0
 public void Stop()
 {
     if (!_GCHandle.IsAllocated)
     {
         return;
     }
     _allocCallback = null;
     _readCallback  = null;
     _readState     = null;
     if (_GCHandle.IsAllocated)
     {
         _GCHandle.Free();
     }
     LibUv.ReadStop(this);
 }