class ZSteg::Result::Camouflage

Public Class Methods

new(data) click to toggle source
# File lib/zsteg/result.rb, line 68
def initialize(data)
  self.hidden_data_len = (data[0x1a,4] || '').unpack('V').first
  if data.size > 300 && data[-4,4] == "\x20\x20\x20\x20"
    # orignal length of host file
    self.host_orig_len = data[-281,4].unpack('V').first
  end
end

Public Instance Methods

to_s() click to toggle source
Calls superclass method
# File lib/zsteg/result.rb, line 76
def to_s
  super.bright_red
end