Class: BMFF::Box::SampleSize
- Inherits:
-
Object
- Object
- BMFF::Box::SampleSize
- Defined in:
- lib/bmffglitch/bmffex.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/bmffglitch/bmffex.rb', line 100 def to_s sio = StringIO.new("", "r+") sio.set_encoding("ascii-8bit") sio.extend(BMFF::BinaryAccessor) sio.write_uint32(@sample_size) sio.write_uint32(@sample_count) if @sample_size == 0 @sample_count.times do |i| sio.write_uint32(@entry_size[i]) end end compose(sio.string) end |