Method: Rex::Java::Serialization::Model::BlockDataLong#to_s

Defined in:
lib/rex/java/serialization/model/block_data_long.rb

#to_sString

Creates a print-friendly string representation

Returns:

  • (String)


62
63
64
65
66
67
# File 'lib/rex/java/serialization/model/block_data_long.rb', line 62

def to_s
  contents_hex = []
  contents.each_byte {|byte| contents_hex << "0x#{byte.to_s(16)}" }

  "[ #{contents_hex.join(', ')} ]"
end