MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / DecRef

Method DecRef

pkg/filament/cpython/object.go:211–216  ·  view source on GitHub ↗

DecRef decrements the reference count for object o. If the object is NULL, nothing happens. If the reference count reaches zero, the object’s type’s deallocation function (which must not be NULL) is invoked.

()

Source from the content-addressed store, hash-verified

209// DecRef decrements the reference count for object o. If the object is NULL, nothing happens. If the reference count
210// reaches zero, the object’s type’s deallocation function (which must not be NULL) is invoked.
211func (ob *PyObject) DecRef() {
212 if ob != nil || ob.rawptr == nil {
213 return
214 }
215 C.Py_DecRef(ob.rawptr)
216}
217
218// IncRef increment the reference count for object o. The object may be NULL, in which case this method has no effect.
219func (ob *PyObject) IncRef() {

Callers 7

FetchErrFunction · 0.95
NewFunction · 0.80
pushEventsMethod · 0.80
onIntervalMethod · 0.80
AddPythonPathFunction · 0.80
CallableArgCountMethod · 0.80
CallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected