Write and read a binary header

Layout: magic AWA1 (4 ASCII bytes), version (u16), payload length (u32), payload, CRC-32 of the payload (u32), all big-endian.


    
Version
Payload length
CRC-32
Payload read back