Class: BMFF::Box::SyncSample
- Inherits:
-
Object
- Object
- BMFF::Box::SyncSample
- Defined in:
- lib/bmffglitch/bmffex.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/bmffglitch/bmffex.rb', line 117 def to_s sio = StringIO.new("", "r+") sio.set_encoding("ascii-8bit") sio.extend(BMFF::BinaryAccessor) sio.write_uint32(@entry_count) @entry_count.times do |i| sio.write_uint32(@sample_number[i]) end compose(sio.string) end |