MCPcopy Create free account
hub / github.com/chokkan/crfsuite / SWIG_PackDataName

Function SWIG_PackDataName

swig/python/export_wrap.cpp:704–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704SWIGRUNTIME char *
705SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
706 char *r = buff;
707 size_t lname = (name ? strlen(name) : 0);
708 if ((2*sz + 2 + lname) > bsz) return 0;
709 *(r++) = '_';
710 r = SWIG_PackData(r,ptr,sz);
711 if (lname) {
712 strncpy(r,name,lname+1);
713 } else {
714 *r = 0;
715 }
716 return buff;
717}
718
719SWIGRUNTIME const char *
720SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {

Callers 3

SwigPyPacked_printFunction · 0.85
SwigPyPacked_reprFunction · 0.85
SwigPyPacked_strFunction · 0.85

Calls 1

SWIG_PackDataFunction · 0.85

Tested by

no test coverage detected