iff.c
Include dependency graph for iff.c:
Functions
-
static uint32_t iff_align(uint32_t size)
-
int iff_is_valid_beam(const void *beam_data)
Returns 1 if pointed binary is valid BEAM IFF.
Checks if the pointed binary has a valid BEAM IFF header.
- Parameters:
beam_data – a pointer to the beam_data binary
- Returns:
1 if beam_data points to a valid binary, otherwise 0 is returned.
-
void scan_iff(const void *iff_binary, int buf_size, unsigned long *offsets, unsigned long *sizes)
parse a BEAM/IFF file and build a sections offsets table
Read a buffer containing a BEAM module file and set all found IFF sections into offsets array.
- Parameters:
iff_binary – is BEAM module data.
file_size – is the BEAM module size in bytes.
offsets – all the relative offsets, each entry will be set to the offset of a different IFF section.
sizes – the computed sections sizes.
-
struct IFFRecord