Use `dataWithBytes` instead of `memcpy`
Merge pull request #272 from robertmryan/master

Use `dataWithBytes` instead of `memcpy`