uint8_t *p1 = (uint8_t*)&m[0]; uint8_t *p2 = (uint8_t*)&data; for (uint8_t i = 0; i < 4; i++) *p1++ = *p2++;