Class: PostgresPR::ParameterStatus
Constant Summary
Constants inherited
from Message
Message::MsgTypeMap
Instance Method Summary
collapse
Methods inherited from Message
create, dump, fields, read, register_message_type
Instance Method Details
#dump ⇒ Object
209
210
211
212
213
214
|
# File 'lib/postgres-pr/message.rb', line 209
def dump
super(@key.size + 1 + @value.size + 1) do |buffer|
buffer.write_cstring(@key)
buffer.write_cstring(@value)
end
end
|
#parse(buffer) ⇒ Object
216
217
218
219
220
221
|
# File 'lib/postgres-pr/message.rb', line 216
def parse(buffer)
super do
@key = buffer.read_cstring
@value = buffer.read_cstring
end
end
|