MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / PD_PString_Copy

Function PD_PString_Copy

paddle/phi/common/cpstring_impl.h:495–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495HOSTDEVICE static inline void PD_PString_Copy(PD_PString *dst,
496 const char *src,
497 size_t size) {
498 char *dst_c = PD_PString_ResizeUninitialized(dst, size);
499
500 if (size) PD_Memcpy(dst_c, src, size);
501}
502
503HOSTDEVICE static inline void PD_PString_Assign(PD_PString *dst,
504 const PD_PString *src) {

Callers 3

PD_PString_AssignFunction · 0.85
pstringMethod · 0.85
pstring.hFile · 0.85

Calls 2

PD_MemcpyFunction · 0.85

Tested by

no test coverage detected