tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
memcpy.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTRING_MEMCPY_HPP
4#define TETL_CSTRING_MEMCPY_HPP
5
8
9namespace etl {
10
15inline auto memcpy(void* dest, void const* src, etl::size_t n) -> void*
16{
17#if defined(__clang__)
18 return __builtin_memcpy(dest, src, n);
19#else
20 return etl::detail::memcpy<unsigned char, etl::size_t>(dest, src, n);
21#endif
22}
23
24} // namespace etl
25
26#endif // TETL_CSTRING_MEMCPY_HPP
auto memcpy(void *dest, void const *src, etl::size_t n) -> void *
Copy the first n bytes pointed to by src to the buffer pointed to by dest. Source and destination may...
Definition memcpy.hpp:15
Definition adjacent_find.hpp:8
TETL_BUILTIN_SIZET size_t
etl::size_t is the unsigned integer type of the result of the sizeof operator.
Definition size_t.hpp:14