Class: PostgresPR::CommandComplete

Inherits:
Message
  • Object
show all
Defined in:
lib/postgres-pr/message.rb

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

#dumpObject



294
295
296
297
298
# File 'lib/postgres-pr/message.rb', line 294

def dump
  super(@cmd_tag.size + 1) do |buffer|
    buffer.write_cstring(@cmd_tag)
  end
end

#parse(buffer) ⇒ Object



300
301
302
303
304
# File 'lib/postgres-pr/message.rb', line 300

def parse(buffer)
  super do
    @cmd_tag = buffer.read_cstring
  end
end