Write the particle components separately, rather than the entire structure,
to avoid writing the structure padding.