LIST is the "LIST" FourCC.
var LIST = FourCC{'L', 'I', 'S', 'T'}
func NewListReader(chunkLen uint32, chunkData io.Reader) (listType FourCC, data *Reader, err error)
NewListReader returns a LIST chunk's list type, such as "movi" or "wavl", and its chunks as a *Reader.
func NewReader(r io.Reader) (formType FourCC, data *Reader, err error)
NewReader returns the RIFF stream's form type, such as "AVI " or "WAVE", and its chunks as a *Reader.
FourCC is a four character code.
type FourCC [4]byte
Reader reads chunks from an underlying io.Reader.
type Reader struct {
// contains filtered or unexported fields
}
▹ Example
func (z *Reader) Next() (chunkID FourCC, chunkLen uint32, chunkData io.Reader, err error)
Next returns the next chunk's ID, length and data. It returns io.EOF if there are no more chunks. The io.Reader returned becomes stale after the next Next call, and should no longer be used.
It is valid to call Next even if all of the previous chunk's data has not been read.