shz_memcpy1
SHZ_INLINE void* shz_memcpy1( void* SHZ_RESTRICT dst, const void* SHZ_RESTRICT src, size_t bytes) SHZ_NOEXCEPT;Copies an unaligned buffer to another one byte at a time.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
dst | void *SHZ_RESTRICT | |
src | const void *SHZ_RESTRICT | |
bytes | size_t |
Returns
Section titled “Returns”void *
Details
Section titled “Details”The dst pointer is returned.
- Typically, unless you know you are copying a tiny number of definitely unaligned bytes, you want to use
shz_memcpy(), which automatically handles arbitrary alignment for you, potentially more efficiently than copying byte-by-byte.
Warnings
Section titled “Warnings”dstandsrcbuffers should not be overlapping.
Availability
Section titled “Availability”- C++ equivalent:
shz::memcpy1 - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_mem.h:114 - Module: Memory, section "Specializations"