FAEA/venv/lib/python3.10/site-packages/msgpack/buff_converter.h
2025-12-22 17:14:46 +08:00

8 lines
220 B
C

#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);
}