Gets a pointer to a function that has a given signature.
获取一个指向具有给定签名的函数的指针。
Of course I could pass a pointer to a function, but I'd like to pass variable.
当然,我可以通过一个指向函数的指针,但我想通过变量。
The registry supports dynamic data by storing a pointer to a function that returns a value (or many values).
藉由储存可传回一个值 (或是多个值) 的函式指标,登录即可支援动态资料。
The constructor is used to form a delegate over a target object and a function pointer.
这构造器用来通过一个目标对象和一个函数指针形成一个委托。
It returns a pointer to the function, which can then be used like any other reference value.
它返回一个函数指针,可以像任何其他引用值一样使用它们。
Global variables are never allocated to registers. Global variables can be changed by assigning them indirectly using a pointer, or by a function call.
全局变量不会被分配在寄存器上,修改全局变量需要通过指针或者调用函数的方式间接进行。
This function calculates the difference between two jiffies values, and then provides the result to the user through a user-space pointer.
这个函数会计算这两个jiffies值之间的差值,然后通过一个用户空间指针将结果提供给用户。
The code passes the target as the first argument and a pointer to the code function as the second. The syntax for this is.
这段代码将目标作为第一个参数,将一个代码函数的指针作为第二个参数进行传递。
This is done by entering just enough data to overwrite the arguments with dummy data and a new return pointer to a different function; the new function is now executed. 10
这是通过输入足够的数据来用伪数据覆盖参数,及输入到不同函数的新返回指针来实现的,现在就执行新的函数了。
When we start talking to the library about something, we call a function called newsession that returns a void pointer (not an unusual way to organize things).
当我们开始与库交流时,我们调用一个名为 newsession 的函数,它会返回一个空指针(这是组织事情的惯用方法)。
However, the method copies a pointer to the selected function into a local variable, and then calls the function with the call method of the function object, rather than calling it directly.
但是,这个方法将所选函数的指针复制到一个局部变量中,然后用function对象的call方法调用这个函数。而不是直接调用它。
You open the file by calling the in function of the DL_Dxf object and passing a pointer to a class that inherits from the DL_CreationAdapter abstract class.
通过调用 DL_Dxf对象的in函数并将指针传递给一个继承 DL_CreationAdapter抽象类来打开此文件。
Listing 8 is slightly more complex than the previous example because of the sigset function, which assigns a function pointer to a signal handler.
由于使用了sigset函数(它向信号处理程序分配一个函数指针),清单8比前一个示例稍微复杂一点,。
The clear_user function is used to zero a block of memory in user space. This function takes a pointer in user space and a size to zero, which is defined in bytes.
clear_user函数被用于将用户空间的内存块清零。
If a function needs to maintain the state of some data over successive calls, such as a working buffer or a pointer, the caller should provide this data.
如果函数需要在一系列调用期间维持某些数据的状态,比如工作缓存或指针,那么调用者应该提供此数据。
This function returns a pointer to the value in the environment or NULL if there is no match.
这个函数会返回一个 指向环境中的值的指针,或者如果不匹配则返回 NULL。
This function gets a pointer to the mutex it is trying to lock.
这个函数会获得一个指向它正在尝试锁定的互斥的指针。
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.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
Pointer to the callback function to be invoked (for one or more event Types) — for each specific event, register a callback function, and then these functions are called when the event occurs.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
During normal operation of a program, when a function is called, any arguments for the called function along with a pointer to the return location are placed onto the stack.
在程序的正常操作过程中,当调用一个函数时,被调用函数的所有参数以及返回位置的指针都放在栈中。
If a function is executing, then the stack pointer is pointing to the top of the whole stack, which is also the top of that function's activation record.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
In the processing function, you get a pointer to the YYLTYPE structure holding the location, and you can generate a nice error message.
在处理函数中,我们获得了一个指向保存了位置信息的YYLTYPE结构的指针,这样可以生成一条很好的错误消息。
This function accepts a pointer to a user space buffer, a pointer to a kernel buffer, and a length defined in bytes.
该函数接受一个指向用户空间缓冲区的指针、一个指向内存缓冲区的指针、以及一个以字节定义的长度。
Returning a pointer to static data may cause a function to be non-reentrant.
返回指向静态数据的指针可能会导致函数不可重入。
In Part 2, I'll show how to overwrite a function pointer and cover assembly components and some juicy shell, network, socket code samples.
在第2部分中,我将介绍如何重写函数指针并介绍组件组装和一些有趣的shell、网络、套接字代码示例。
We now know that this represents a function pointer type that can refer to any method taking a single int argument and returning a string.
我们现在知道了这是一个函数指针类型,它可以引用任何有一个int类型参数并且返回一个string类型的方法。
The strerror() function isn't necessarily thread-safe; for unknown values, it formats an error message in a static buffer and returns a pointer to that buffer.
strerror()函数并没有必要是线程安全的;对于未知值,该函数在静态缓冲区中设置错误消息的格式并将指针返回到该缓冲区。
The strerror() function isn't necessarily thread-safe; for unknown values, it formats an error message in a static buffer and returns a pointer to that buffer.
strerror()函数并没有必要是线程安全的;对于未知值,该函数在静态缓冲区中设置错误消息的格式并将指针返回到该缓冲区。
应用推荐