Npgsql.NpgsqlCopySerializer.FlushRows C# (CSharp) Method

FlushRows() public method

Flush rows.
public FlushRows ( ) : void
return void
        public void FlushRows()
        {
            if (_lastRowEndAt > 0)
            {
                ToStream.Write(_sendBuffer, 0, _lastRowEndAt);
                ToStream.Flush();
                int len = _sendBufferAt - _lastRowEndAt;
                for (int i = 0; i < len; i++)
                {
                    _sendBuffer[i] = _sendBuffer[_lastRowEndAt + i];
                }
                _lastFieldEndAt -= _lastRowEndAt;
                _sendBufferAt -= _lastRowEndAt;
                _lastRowEndAt = 0;
            }
        }