然后,您可以将库装入到您的地址空间中并使用函数指针调用方法。
You could then load the library into your address space and call the methods using function Pointers.
在调用遗留代码的时候,可以通过调用导出的函数进行直接地调用,也可以通过使用函数指针进行间接地调用,但是内核必须完成以下工作
When legacy code is called, either directly by calling an exported function or indirectly by using a function pointer, the kernel must
所以,在这个函数中,我们使用了回链指针、链接寄存器保存区和一个本地变量。
So, in this function, we are using the back chain pointer, the link register save area, and one local variable.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
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.
它返回一个函数指针,可以像任何其他引用值一样使用它们。
It returns a pointer to the function, which can then be used like any other reference value.
清单2提供了一个使用指针参数的稍微复杂的函数。
Listing 2 provides a slightly more complicated function that USES pointer arguments.
第二个域是这个函数使用的toc指针。
函数可以自由使用288字节的内存,对于不调用其他函数的函数来说,这段内存物理上在堆栈指针之下。
Functions are free to use the 288 bytes that are physically below the stack pointer for functions that do not call other functions.
这对函数了解自己的活动记录在什么地方提供了方便——它们可以使用堆栈指针的形式简单地进行定义。
This makes it easy for functions to know where their activation record is — they are simply defined in terms of the stack pointer.
当完成该函数之后,使用返回指针回到原来的位置并继续程序。
After the function has been completed, the return pointer is used to go back to the original location and the program can continue.
使用 BOOST_TEST_CASE宏创建的单元测试以函数指针作为输入参数。
The unit tests that are created using the BOOST_TEST_CASE macros accept function pointers as their input arguments.
清单4中所示的结构由mimeokay函数使用,用来实现以下用途:将全局字符串指针fstr 设置为与文件扩展名fext 相匹配的合适的MIME类型。
The structure in Listing 4 is used by the mimeokay function for one purpose: to set the global string pointer fstr to the appropriate MIME type string matching the file's extension: fext.
您可以使用 access_ok函数在您想要访问的用户空间检查指针的有效性。
You use the access_ok function to check the validity of the pointer in user space that you intend to access.
首先,Vee -Table指针用于访问虚函数,而对数据成员的访问直接使用编译时偏移量实现。
First, the Vee-Table pointer is used to access virtual functions, and data members are accessed directly using compile time offsets.
您可以通过使用printf调用和strerror函数(该函数返回当前errno值的文字表示形式的指针)来模拟此程序。
You can simulate this yourself by using a printf call and the strerror function, which returns a pointer to the textual representation of the current errno value.
正像iterators是指针的一般化,函数对象是函数的一般化:一个函数对象是你可以使用普通函数调用语法。
Just as iterators are a generalization of Pointers, function objects are a generalization of functions: a function object is anything that you can call using the ordinary function call syntax.
因此,使用简化ABI 的函数实际上可以通过从堆栈指针开始的负偏移量来保存、使用和恢复非易失性寄存器。
Therefore, functions using the simplified ABI actually can save, use, and restore non-volatile registers by using negative offsets from the stack pointer.
由于使用了sigset函数(它向信号处理程序分配一个函数指针),清单8比前一个示例稍微复杂一点,。
Listing 8 is slightly more complex than the previous example because of the sigset function, which assigns a function pointer to a signal handler.
这个函数使用了两个参数:一个long类型,以及一个指向被定义为__user的long的指针。
This function takes two arguments: a long and a pointer to a long that's defined as __user.
我如何能在非成员函数使用私有成员变量时,变量是指针?
How can I use a private member variable in a non-member function, when the variable happens to be a pointer?
如果你要使用这些适配器,它们的用法与标准的函数指针适配器是一样的。例如。
If you need to use these adapters, usage is identical to the standard function pointer adapters. For example.
如何使用一个通用的函数的指针作为一个模板参数?
How to use a general function pointer as a template parameter?
具有指针成员且使用默认合成复制构造函数的类具有普通指针的所有缺陷。
Classes that have pointer members and use default synthesized copy control have all the pitfalls of ordinary Pointers.
使用基类对象指针或引用的函数必须能够在不了解衍生类的条件下使用衍生类的对象。
Functions that use Pointers or references to base classes must be able to use objects of derived classes without knowing it.
函数和函数指针可以互换使用,大概是为了方便。
Functions and function Pointers can be used interchangeably, presumably for convenience.
当调用需要指针的本机函数时,需要使用不安全代码。
Unsafe code is required when you call native functions that require pointers.
此时要适当地做一部分题,使用和教材配套的练习册即可,着重复习函数、数组和指针。
Want to become one part problem appropriately right now, use the practice with teaching material form a complete set book can, emphasize revise function, array and index.
可以使用托管委托取代本机函数指针来从托管代码中调用以函数指针作为参数的非托管api。
Unmanaged APIs that take functions Pointers as arguments can be called from managed code with a managed delegate in place of the native function pointer.
可以使用托管委托取代本机函数指针来从托管代码中调用以函数指针作为参数的非托管api。
Unmanaged APIs that take functions Pointers as arguments can be called from managed code with a managed delegate in place of the native function pointer.
应用推荐