Skip to content

shz_memcpy1

Markdown
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.

NameTypeDescription
dstvoid *SHZ_RESTRICT
srcconst void *SHZ_RESTRICT
bytessize_t

void *

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.
  • dst and src buffers should not be overlapping.
  • 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"

shz_memcpy