mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-10-30 17:10:54 +00:00 
			
		
		
		
	
		
			
	
	
		
			9 lines
		
	
	
	
		
			220 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			9 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); | ||
|  | } |