inline function信息详情
内联函数
wrapper inline───包装器内联
inline skates───溜冰鞋
inline skating───直排轮;纵列式滑冰
stand inline───直列站立
function───n.功能;[数]函数;职责;盛大的集会;vi.运行;活动;行使职责
leveling function───调平功能
basic function───基本功能;[数]基本函数
clasper function───扣合器功能
function generator───信号(函数)发生器;信号[函数]发生器
Listing 3. Generated Code for an inline function in header file.───列表3 .在头文件中为一个内联函数所生成的代码。
Listing 4. Generated Code for an inline function in body file.───列表4 .在实体文件中为一个内联函数所生成的代码。
This call actually compiles to an inline function.───这个调用实际上编译成一个内联函数。
That's it. As you can see, this program is really just a simple inline function hook, no more complex than the example from Chapter 5.───就这样了。可以看到,这个程序不过是个简单的内嵌函数挂勾,不比第5章的例子复杂多少。
The declaration and definition generated for the inline function with this option would all be in the header file, as shown in Listing 5.───采用这一选项为内联函数所生成的声明和定义将全部位于头文件中,如列表5所示。
Instead, hot call sites are more likely to be inlined to keep the code size small while still getting inline function benefits.───相反,热调用点(hotcallsite)更可能被内联,以使代码尽量短小,同时仍获得内联函数的优点。
For handling that kind of wrapper, an inline function within your shell might be a better bet.───对于处理此类包装,外壳中的内联函数可能更为适合。
Back in Listing 6, you saw that we had a button whose action var was set to an inline function.───回到清单6,我们使用了一个按钮,它的action变量被设置为一个内联函数。
In this case, you used an anonymous inline function, also known as a closure.───在这个案例中您使用一个匿名内联函数,也称为一个闭包。
The optimizer removed an inline function that is not called.
What this means is that in order to detect an inline function hook you need to scan, more or less, the entire range of executable kernel memory and look through each unconditional jump instruction.