Use `dataWithBytes` instead of `memcpy`