private void ProcessReceives() { _buffer = _input.Alloc(2048); var receiveBufferSeg = GetSegmentFromSpan(_buffer.Memory); if (!_rio.RioReceive(_requestQueue, ref receiveBufferSeg, 1, RioReceiveFlags.None, 0)) { ThrowError(ErrorType.Receive); } }
private Uv.uv_buf_t OnAlloc(UvStreamHandle handle, int status) { _inputBuffer = _input.Alloc(2048); return(handle.Libuv.buf_init(_inputBuffer.Memory.BufferPtr, _inputBuffer.Memory.Length)); }