Sha256: 460031f9624a26ab1faf3bb216600e14ac0d97f9cfc684fa5c0778e2435166a3

Contents?: true

Size: 350 Bytes

Versions: 8

Compression:

Stored size: 350 Bytes

Contents

#!/usr/bin/env ruby
require 'hexdump'
require 'awesome_print'

def dump x
  data = Marshal.dump(x)
  printf "[.] %4d: %-10s (%d): %s\n".green, data.size, x.class.to_s, x.size, x.inspect[0,30].gray
  Hexdump.dump data
  puts
end

dump 0
dump 0xff
dump [0] * 10
dump [0xff] * 10
dump 'x'
dump 'x'*100
dump ['x']*100

a = [1,2,3,4,5]
dump a
dump [a]*10

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sugar_png-0.5.5 data/2-marshal-test.rb
sugar_png-0.5.4 data/2-marshal-test.rb
sugar_png-0.5.3 data/2-marshal-test.rb
sugar_png-0.5.2 data/2-marshal-test.rb
sugar_png-0.5.1 data/2-marshal-test.rb
sugar_png-0.5.0 data/2-marshal-test.rb
sugar_png-0.4.1 data/2-marshal-test.rb
sugar_png-0.4.0 data/2-marshal-test.rb