Class: BMFF::Box::SampleDescription

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



89
90
91
92
93
94
95
96
# File 'lib/bmffglitch/bmffex.rb', line 89

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