예제 #1
0
        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);
        }
예제 #2
0
        internal static void TryWriteStream(IntPtr handle, uv_buf_t buf)
        {
            var bufs = new [] { buf };

            Invoke(uv_try_write, handle, bufs, bufs.Length);
        }