The constructor is used to form a delegate over a target object and a function pointer.
这构造器用来通过一个目标对象和一个函数指针形成一个委托。
This function accepts a pointer to a user space buffer, a pointer to a kernel buffer, and a length defined in bytes.
该函数接受一个指向用户空间缓冲区的指针、一个指向内存缓冲区的指针、以及一个以字节定义的长度。
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 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
这是通过输入足够的数据来用伪数据覆盖参数,及输入到不同函数的新返回指针来实现的,现在就执行新的函数了。
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()函数并没有必要是线程安全的;对于未知值,该函数在静态缓冲区中设置错误消息的格式并将指针返回到该缓冲区。
You will pass two arguments to this function: the service name and the pointer to the ControlHandlerfunction.
你要将两个参数传递给此函数:服务名和指向ControlHandlerfunction的指针。
The code passes the target as the first argument and a pointer to the code function as the second. The syntax for this is.
这段代码将目标作为第一个参数,将一个代码函数的指针作为第二个参数进行传递。
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抽象类来打开此文件。
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函数被用于将用户空间的内存块清零。
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.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
After the function has been completed, the return pointer is used to go back to the original location and the program can continue.
当完成该函数之后,使用返回指针回到原来的位置并继续程序。
Casting from member function pointer to another type and back, strict-aliasing issue?
铸造成员函数指针到另一个类型和背部,严格的混叠问题?
This function calculates the difference between two jiffies values, and then provides the result to the user through a user-space pointer.
这个函数会计算这两个jiffies值之间的差值,然后通过一个用户空间指针将结果提供给用户。
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类型的方法。
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方法调用这个函数。而不是直接调用它。
The new function basically does nothing besides building the object reference to contain that, and you can see that the other functions have to unpack the void pointer before getting down to business.
new函数除了构建一个包括它的对象引用以外,基本上没什么作用。而且您可以看到,其它的函数在执行前必须先将那个空指针解开。
A pointer to a variable of this type is passed to the process_args function, and on return, the variable contains values obtained from arg processing.
指向该类型变量的指针被传递到process_args函数,返回该指针时,它包含从参数处理过程获得的值。
This function takes two arguments: a long and a pointer to a long that's defined as __user.
这个函数使用了两个参数:一个long类型,以及一个指向被定义为__user的long的指针。
The function primarily used for this is pthread_cond_wait . It takes two arguments; the first is a pointer to a condition variable, and the second is a locked mutex.
函数pthread_cond_wait主要就是用于阻塞线程的,它有两个参数;第一个是一个指向条件变量的指针,第二个是一个锁定了的互斥量。
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.
您可以通过使用printf调用和strerror函数(该函数返回当前errno值的文字表示形式的指针)来模拟此程序。
The username and password are stored in a MQCSP structure, and a pointer to this structure, pSecurityParms, is passed into the function when it is called.
代码中将用户名和密码存储在MQCSP结构中,并在调用时将指向此结构的指针psecurityparms传递给该函数。
Where name is the work_struct name, function is the function to be invoked when the task is scheduled, and data is the pointer to that function.
在这里name是work_struct的名字,function是当任务被调度时调用的函数,data是指向那个函数的指针。
The next() function moves the internal pointer to, and outputs, the next element in the array.
函数的作用是:将数组内部的指针移向当前元素的下一个元素,并输出它。
The prev function moves the internal pointer to, and outputs, the previous element in the array.
函数的作用是:将数组内部的指针移向当前元素的上一个元素,并输出它。
If the function is virtual and the call is through a reference or pointer, then the compiler generates code to determine which version to run based on the dynamic type of the object.
如果函数是虚函数,并且调用是通过引用或者指针,编译器基于动态类型生成代码确定调用哪个版本。
In addition, where a function pointer contains only a reference to a particular function, a delegate consists of a reference to an object, and references to one or more methods within the object.
另外,函数指针只包含对特定函数的引用,而委托由对对象的引用以及对该对象内一个或多个方法的引用组成。
Linking occurs when your code is bound to a type reference, including function pointer references and method calls.
当您的代码绑定到类型引用(包括函数指针引用和方法调用)时,就会进行链接。
The only reliable way to do it is to also export a class factory function, a simple function that USES the new operator to create the object and return the pointer.
唯一可靠的方法就是也出口类工厂函数,一个简单的函数,使用新的操作符来创建对象并返回的指针。
The end function moves the internal pointer to, and outputs, the last element in the array.
函数的作用是:将数组的内部指针指向最后一个元素并输出它。
应用推荐