MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __Pyx_GetBuffer

Function __Pyx_GetBuffer

eval/CIPO_evaluation/pycocotools/_mask.c:13625–13629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13623
13624#if PY_MAJOR_VERSION < 3
13625static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) {
13626 if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags);
13627 PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
13628 return -1;
13629}
13630static void __Pyx_ReleaseBuffer(Py_buffer *view) {
13631 PyObject *obj = view->obj;
13632 if (!obj) return;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected