MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / memcpy

Function memcpy

include/stringzilla/stringzilla.hpp:104–106  ·  view source on GitHub ↗

* @brief Analog to @b `std::memcpy`, but with a more efficient implementation. * @param[in] target The pointer to the target memory region. * @param[in] source The pointer to the source memory region. * @param[in] n The number of bytes to copy. * @see https://en.cppreference.com/w/cpp/string/byte/memcpy */

Source from the content-addressed store, hash-verified

102 * @see https://en.cppreference.com/w/cpp/string/byte/memcpy
103 */
104inline void memcpy(void *target, void const *source, std::size_t n) noexcept {
105 return sz_copy(reinterpret_cast<sz_ptr_t>(target), reinterpret_cast<sz_cptr_t>(source), n);
106}
107
108#pragma endregion
109

Callers 2

basic_look_up_tableMethod · 0.70
basic_look_up_tableClass · 0.70

Calls 1

sz_copyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…