Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 509 Bytes

File metadata and controls

19 lines (14 loc) · 509 Bytes

Chunk

Chunk follow a type-length-value structure:

Type Name
u32 Chunk Type ID
u32 Chunk Length
void[Chunk Length] Chunk Data

Chunk Type ID

A four-word identifier that specifies the type of the chunk.

It normally uses four uppercase ASCII values, however it is not a string as big-endian files have the names backwards (such as FORM being MROF).

Chunk Length

The size of the Chunk Data.

Chunk Data

The contents of the chunk. Whatever it describes depends on the chunk type.