赞
踩
abi是比api更贴近硬件的一层接口,它规定的是二进制代码之间的调用规则。abi(应用二进制接口)我的理解就是机器代码一层的接口。
ls -Alh:dynamic_cast.cc
其中函数:
// Return a pointer to a __class_type_info in a vtable.
inline const abi::__class_type_info*
get_class_type_info(const void* vtable)
{
const void* type_info_ptr = adjust_pointer(vtable, -sizeof(void*));
return *reinterpret_cast<abi::__class_type_info*const*>(type_info_ptr);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。