MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / release

Method release

Source/Falcor/Utils/Scripting/ndarray.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56 ~scoped_pymalloc() { PyMem_Free(ptr); }
57 T* release()
58 {
59 T* temp = ptr;
60 ptr = nullptr;
61 return temp;
62 }
63 T* get() const { return ptr; }
64 T& operator[](size_t i) { return ptr[i]; }
65 T* operator->() { return ptr; }

Callers 6

nb_ndarray_getbufferFunction · 0.45
ndarray_importFunction · 0.45
ndarray_createFunction · 0.45
ndarray_wrapFunction · 0.45
initModuleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected