Example #1
0
        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);
            }
        }
Example #2
0
 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));
 }