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
210
211
212
213
214
|
# File 'lib/postgres-pr/message.rb', line 210
def dump
super(@password.size + 1) do |buffer|
buffer.write_cstring(@password)
end
end
|
#parse(buffer) ⇒ Object
216
217
218
219
220
|
# File 'lib/postgres-pr/message.rb', line 216
def parse(buffer)
super do
@password = buffer.read_cstring
end
end
|