Class: BMFF::Box::DataReference

Inherits:
Object
  • Object
show all
Defined in:
lib/bmffglitch/bmffex.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



78
79
80
81
82
83
84
85
# File 'lib/bmffglitch/bmffex.rb', line 78

def to_s
  sio = StringIO.new("", "r+")
  sio.set_encoding("ascii-8bit")
  sio.extend(BMFF::BinaryAccessor)
  
  sio.write_uint32(@entry_count)
  compose(sio.string + @children.map {|box| box.to_s}.join)
end