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

Function PD_PString_AssignView

paddle/phi/common/cpstring_impl.h:464–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464HOSTDEVICE static inline void PD_PString_AssignView(PD_PString *dst,
465 const char *src,
466 size_t size) {
467 PD_PString_Dealloc(dst);
468
469 dst->u.view.size = PD_PString_ToInternalSizeT(size, PD_PSTR_VIEW);
470 dst->u.view.ptr = src;
471}
472
473HOSTDEVICE static inline void PD_PString_AppendN(PD_PString *dst,
474 const char *src,

Callers 2

PD_PString_MoveFunction · 0.85
pstring.hFile · 0.85

Calls 2

PD_PString_DeallocFunction · 0.85

Tested by

no test coverage detected