MCPcopy Create free account
hub / github.com/apache/brpc / cp

Function cp

src/butil/iobuf.cpp:162–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160#endif // ARCH_CPU_X86_64
161
162void* cp(void *__restrict dest, const void *__restrict src, size_t n) {
163 // memcpy in gcc 4.8 seems to be faster enough.
164 return memcpy(dest, src, n);
165}
166
167// Function pointers to allocate or deallocate memory for a IOBuf::Block
168void* (*blockmem_allocate)(size_t) = ::malloc;

Callers 9

CopyMethod · 0.85
assignMethod · 0.85
cutnMethod · 0.85
appendMethod · 0.85
appendvMethod · 0.85
unsafe_assignMethod · 0.85
copy_toMethod · 0.85
fetchMethod · 0.85
fast_memcpyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected