Npgsql.NpgsqlCopySerializer.PrefixField C# (CSharp) Method

PrefixField() protected method

Prefix field.
protected PrefixField ( ) : void
return void
        protected void PrefixField()
        {
            if (_atField > 0)
            {
                if (_atField >= _context.CurrentState.CopyFormat.FieldCount)
                {
                    throw new NpgsqlException("Tried to add too many fields to a copy record with " + _atField + " fields");
                }
                AddBytes(DelimiterBytes);
            }
        }