# shz_memcpy8

Source: https://sh4zam.com/api/memory/shz_memcpy8/

```c
SHZ_INLINE void* shz_memcpy8( void* SHZ_RESTRICT dst, const void* SHZ_RESTRICT src, size_t bytes) SHZ_NOEXCEPT;
```

Copies a from one 8-byte aligned buffer to another 8 bytes at a time.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `dst` | `void *SHZ_RESTRICT` |  |
| `src` | `const void *SHZ_RESTRICT` |  |
| `bytes` | `size_t` |  |

## Returns

`void *`

## Details

The `dst` buffer is returned.

## Warnings

- `dst` and `src` must both be aligned by at least 8 bytes, and `bytes` must be a multiple of 8.
- `src` and `dst` should not overlap.

## Availability

- **C++ equivalent:** [`shz::memcpy8`](https://sh4zam.com/api/cpp/#shzmemcpy8)
- **Type-generic form:** none
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_mem.h:159`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_mem.h#L159)
- **Module:** [Memory](https://sh4zam.com/api/memory/), section "Specializations"
