MCPcopy Create free account
hub / github.com/catboost/catboost / _PyObject_VAR_SIZE

Function _PyObject_VAR_SIZE

contrib/tools/cython/Cython/Debugger/libpython.py:470–478  ·  view source on GitHub ↗
(typeobj, nitems)

Source from the content-addressed store, hash-verified

468 self.address)
469
470def _PyObject_VAR_SIZE(typeobj, nitems):
471 if _PyObject_VAR_SIZE._type_size_t is None:
472 _PyObject_VAR_SIZE._type_size_t = gdb.lookup_type('size_t')
473
474 return ( ( typeobj.field('tp_basicsize') +
475 nitems * typeobj.field('tp_itemsize') +
476 (_sizeof_void_p() - 1)
477 ) & ~(_sizeof_void_p() - 1)
478 ).cast(_PyObject_VAR_SIZE._type_size_t)
479_PyObject_VAR_SIZE._type_size_t = None
480
481class HeapTypeObjectPtr(PyObjectPtr):

Callers 1

get_attr_dictMethod · 0.85

Calls 4

_sizeof_void_pFunction · 0.85
fieldMethod · 0.80
lookup_typeMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected