# shz_memset8

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

> Assigns the given 8-byte value to the bytes in dst

```c
SHZ_INLINE void* shz_memset8(void* dst, uint64_t value, size_t bytes) SHZ_NOEXCEPT;
```

Assigns the given 8-byte `value` to the `bytes` in `dst`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `dst` | `void *` |  |
| `value` | `uint64_t` |  |
| `bytes` | `size_t` |  |

## Returns

`void *`

## Warnings

- `dst` should be at least 8-byte aligned, and `bytes` should be a multiple of 8!

## Availability

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