class FileData::BoxesReader
Returns all boxes starting from the current position of a stream
Public Class Methods
read(view)
click to toggle source
# File lib/file_data/formats/mpeg4/boxes_reader.rb, line 7 def self.read(view) Enumerator.new do |e| view.seek view.start_pos until view.eof? box = Box.parse(view) e.yield box view.seek box.end_pos + 1 end end.lazy end