Class: PostgresPR::PasswordMessage
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
192
193
194
195
196
|
# File 'lib/postgres-pr/message.rb', line 192
def dump
super(@password.size + 1) do |buffer|
buffer.write_cstring(@password)
end
end
|
#parse(buffer) ⇒ Object
198
199
200
201
202
|
# File 'lib/postgres-pr/message.rb', line 198
def parse(buffer)
super do
@password = buffer.read_cstring
end
end
|