C style structs for reading and writing to Uint8Arrays