internal static void WriteStream(IntPtr requestHandle, IntPtr streamHandle, uv_buf_t buf) { if (streamHandle == IntPtr.Zero) { throw new ArgumentException("Invalid empty handle value.", nameof(streamHandle)); } var bufs = new[] { buf }; Invoke(uv_write, requestHandle, streamHandle, bufs, bufs.Length, WatcherRequest.WatcherCallback); }
internal static void TryWriteStream(IntPtr handle, uv_buf_t buf) { var bufs = new [] { buf }; Invoke(uv_try_write, handle, bufs, bufs.Length); }