void decode(string|Stdio.File data)
Decodes data according to the struct and populates the struct variables. The data can either be a file object or a string.