Method: Rex::Java::Serialization::Model::Utf#encode
- Defined in:
- lib/rex/java/serialization/model/utf.rb
#encode ⇒ String
Serializes the Rex::Java::Serialization::Model::Utf
52 53 54 55 56 57 |
# File 'lib/rex/java/serialization/model/utf.rb', line 52 def encode encoded = [length].pack('n') encoded << contents encoded end |