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



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

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

#parse(buffer) ⇒ Object



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

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