add
This commit is contained in:
8
ccxt/static_dependencies/msgpack/buff_converter.h
Normal file
8
ccxt/static_dependencies/msgpack/buff_converter.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "Python.h"
|
||||
|
||||
/* cython does not support this preprocessor check => write it in raw C */
|
||||
static PyObject *
|
||||
buff_to_buff(char *buff, Py_ssize_t size)
|
||||
{
|
||||
return PyMemoryView_FromMemory(buff, size, PyBUF_READ);
|
||||
}
|
||||
Reference in New Issue
Block a user