chunk
chunk — Read IFF chunked data
This module provides an interface for reading files that use EA IFF 85 chunks. [1] This format is used in at least the Audio Interchange File Format (AIFF/AIFF-C) and the Real Media File Format (RMFF). The WAVE audio file format is closely related and can also be read using this module.
A chunk has the following structure:
Offset | Length | Contents |
---|---|---|
0 | 4 | Chunk ID |
4 | 4 | Size of chunk in big-endian byte order, not including the header |
8 | n | Data bytes, where n is the size given in the preceding field |