# change semantics of \`@memcpy\` and \`@memset\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a5c910adb610ae530db99f10aa77aaed3e85e830)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a5c910adb610ae530db99f10aa77aaed3e85e830

Requested commit: a5c910adb610ae530db99f10aa77aaed3e85e830

Commit: a5c910adb610ae530db99f10aa77aaed3e85e830

Tree: 5c3f72dbac50fc9f09608be3d7ea328c629c00a0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
change semantics of `@memcpy` and `@memset`

Now they use slices or array pointers with any element type instead of
requiring byte pointers.

This is a breaking enhancement to the language.

The safety check for overlapping pointers will be implemented in a
future commit.

closes #14040

```

## Parents

- [8d88dcdc61c61e3410138f4402482131f5074a80](https://git.cafe/gitcafe/zig/commit/8d88dcdc61c61e3410138f4402482131f5074a80?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a5c910adb610ae530db99f10aa77aaed3e85e830?format=markdown)
