public override void Send(ByteBuf byteBuf) { var unmanagedByteBuf = (IUnmanagedByteBuf)byteBuf; unmanagedByteBuf.GetReadable(out IntPtr ptr, out int len); var buf = new UvNative.uv_buf_t(ptr, len, PlatformApis.IsWindows); UvTcpHandle.TryWrite(buf); // // TODO: обрабатывать статус с ошибкой. // UvWriteRequestT<ByteBuf> writeRequest = new UvWriteRequestT<ByteBuf>(); // writeRequest.Init(WriteCallback); // int writeResult = writeRequest.Write(UvTcpHandle, buf, byteBuf); }