def SizeOf(typestr):
    return idaapi.calc_type_size(idaapi.cvar.idati, typestr)
Returns the size of the type. It is equivalent to IDC's sizeof().
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SizeOf