parameters: (ptr, size)
return_statement: return func(ptr, size, PyBUF_READ)
docstring: Make Python buffer from raw memory
docstring_summary: Make Python buffer from raw memory
docstring_tokens: Make Python buffer from raw memory
function: def buffer_from_memory(ptr, size):
      """Make Python buffer from raw memory"""
      func = ctypes.pythonapi.PyMemoryView_FromMemory
      func.restype = ctypes.py_object
      PyBUF_READ = 0x100  # pylint: disable=C0103
      return func(ptr, size, PyBUF_READ)
function_tokens: def buffer_from_memory ( ptr , size ) : func = ctypes . pythonapi . PyMemoryView_FromMemory func . restype = ctypes . py_object PyBUF_READ = 0x100 # pylint: disable=C0103 return func ( ptr , size , PyBUF_READ )