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

Function memset

include/stringzilla/stringzilla.hpp:82–84  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

80 * @see https://en.cppreference.com/w/cpp/string/byte/memset
81 */
82inline void memset(void *target, char value, std::size_t n) noexcept {
83 return sz_fill(reinterpret_cast<sz_ptr_t>(target), n, value);
84}
85
86/**
87 * @brief Analog to @b `std::memmove`, but with a more efficient implementation.

Callers 1

basic_look_up_tableMethod · 0.70

Calls 1

sz_fillFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…