示例#1
0
 public NpgsqlParameterStatus(Stream stream, ByteBuffer queue)
 {
     //Read message length
     PGUtil.EatStreamBytes(stream, 4);
     Parameter      = PGUtil.ReadString(stream, queue);
     ParameterValue = PGUtil.ReadString(stream, queue);
 }
示例#2
0
        protected override void SkipOne()
        {
            int fieldSize = GetThisFieldCount();

            if (fieldSize >= _messageSize)
            {
                AbandonShip();
            }
            _nextFieldSize = null;
            PGUtil.EatStreamBytes(Stream, fieldSize);
        }
示例#3
0
        public NpgsqlRowDescription(Stream stream, NpgsqlBackendTypeMapping type_mapping, Version compatVersion, byte[] buffer, ByteBuffer queue)
        {
            _compatVersion = compatVersion;
            PGUtil.EatStreamBytes(stream, 4);
            var num = PGUtil.ReadInt16(stream, buffer);

            fields_data = new FieldData[num];
            for (int i = 0; i < fields_data.Length; i++)
            {
                fields_data[i] = new FieldData(stream, type_mapping, buffer, queue);
            }
        }
        public NpgsqlRowDescription Process(Stream stream, NpgsqlBackendTypeMapping type_mapping, byte[] buffer, ByteBuffer queue)
        {
            PGUtil.EatStreamBytes(stream, 4);
            var num = PGUtil.ReadInt16(stream, buffer);

            fields_data_len = num;
            if (num > fields_data.Length)
            {
                fields_data = new FieldData[num];
            }
            for (int i = 0; i < fields_data_len; i++)
            {
                fields_data[i] = new FieldData(stream, type_mapping, buffer, queue);
            }
            _field_name_index_table        = null;
            _caseInsensitiveNameIndexTable = null;
            return(this);
        }
示例#5
0
 public void Dispose()
 {
     PGUtil.EatStreamBytes(_stream, _remainingBytes);
 }