MCPcopy Create free account
hub / github.com/carbonengine/trinity / ToPyBytes

Function ToPyBytes

trinity/PyVerCompat.h:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26inline PyObject* ToPyBytes( const char* str, size_t size )
27{
28#if PY_MAJOR_VERSION == 2
29 return PyString_FromStringAndSize( str, size );
30#else
31 return PyBytes_FromStringAndSize( str, size );
32#endif
33}
34
35inline PyObject* MemoryViewRW( void* data, Py_ssize_t size )
36{

Callers 4

PyGetDataFunction · 0.85
PyGetDataFunction · 0.85
PyBgraToRgbFunction · 0.85
SetBufferAndSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected