Method: Zerg::Support::Protocols::FrameProtocol.encode_frame
- Defined in:
- lib/zerg_support/protocols/frame_protocol.rb
.encode_frame(frame_data) ⇒ Object
:nodoc: Encodes frame data into data to be sent across a TCP wire.
45 46 47 48 |
# File 'lib/zerg_support/protocols/frame_protocol.rb', line 45 def self.encode_frame(frame_data) encoded_length = FrameProtocol.encode_natural(frame_data.length) encoded_length + frame_data end |