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

Function SWIG_PackData

swig/python/export_wrap.cpp:636–647  ·  view source on GitHub ↗

Pack binary data into a string */

Source from the content-addressed store, hash-verified

634 Pack binary data into a string
635*/
636SWIGRUNTIME char *
637SWIG_PackData(char *c, void *ptr, size_t sz) {
638 static const char hex[17] = "0123456789abcdef";
639 register const unsigned char *u = (unsigned char *) ptr;
640 register const unsigned char *eu = u + sz;
641 for (; u != eu; ++u) {
642 register unsigned char uu = *u;
643 *(c++) = hex[(uu & 0xf0) >> 4];
644 *(c++) = hex[uu & 0xf];
645 }
646 return c;
647}
648
649/*
650 Unpack binary data from a string

Callers 2

SWIG_PackVoidPtrFunction · 0.85
SWIG_PackDataNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected