public int TryWrite(LibuvNative.uv_buf_t buf) { _writeBufs = _writeBufs ?? new LibuvNative.uv_buf_t[1]; _writeBufs[0] = buf; return(LibuvNative.uv_try_write(this, _writeBufs, 1)); }
static private void ReadCb(IntPtr handle, int status, ref LibuvNative.uv_buf_t buf) { LibuvStreamHandle streamHandle = FromIntPtr <LibuvStreamHandle>(handle); streamHandle._readCallback(streamHandle, status, ref buf); }
static private void AllocCb(IntPtr handle, int suggestedSize, out LibuvNative.uv_buf_t buf) { LibuvStreamHandle streamHandle = FromIntPtr <LibuvStreamHandle>(handle); streamHandle._allocCallback(streamHandle, suggestedSize, out buf); }