首先你要明白虚拟继承时,派生类所建立的对像,都会配置4Bytes的一个叫做虚拟指针(virtual pointer),指向的是由成员函数指针所形成的数组,这个数组中的每一个函数指针所指向的是一个虚拟函数,关于这些我想你还是多看看课外书,...
基于232个网页-相关网页
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
You can then use the return pointer to configure other aspects of the virtual file, such as the function to call when a read is performed on the file.
另外,永远不要忘记,虚拟继承的对象有指向基对象的基指针。
In addition, keep in mind that virtually inherited objects have base Pointers to address base objects.
虚拟内存区域(VMA)指针要作为第一个参数,然后是四个常用的参数(start,end,size 和 protection 标记)。
The virtual memory area (VMA) pointer needs to be added in as the first parameter followed by the usual four parameters (start, end, size, and protection flags).
应用推荐