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