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

Function __Pyx_SafeReleaseBuffer

eval/CIPO_evaluation/pycocotools/_mask.c:12258–12262  ·  view source on GitHub ↗

BufferGetAndValidate */

Source from the content-addressed store, hash-verified

12256
12257/* BufferGetAndValidate */
12258 static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) {
12259 if (unlikely(info->buf == NULL)) return;
12260 if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL;
12261 __Pyx_ReleaseBuffer(info);
12262}
12263static void __Pyx_ZeroBuffer(Py_buffer* buf) {
12264 buf->buf = NULL;
12265 buf->obj = NULL;

Calls 1

__Pyx_ReleaseBufferFunction · 0.85

Tested by

no test coverage detected