Class: UState::Message
- Inherits:
-
Object
- Object
- UState::Message
- Includes:
- Beefcake::Message
- Defined in:
- lib/ustate/message.rb
Instance Method Summary collapse
Instance Method Details
#encode_with_length ⇒ Object
10 11 12 13 14 |
# File 'lib/ustate/message.rb', line 10 def encode_with_length buffer = '' encoded = encode buffer "#{[encoded.length].pack('N')}#{encoded}" end |