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


310
311
312
313
314
# File 'lib/postgres-pr/message.rb', line 310

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

#parse(buffer) ⇒ Object


316
317
318
319
320
# File 'lib/postgres-pr/message.rb', line 316

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