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.
如果函数需要在一系列调用期间维持某些数据的状态,比如工作缓存或指针,那么调用者应该提供此数据。
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.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
You use the access_ok function to check the validity of the pointer in user space that you intend to access.
您可以使用 access_ok函数在您想要访问的用户空间检查指针的有效性。
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抽象类来打开此文件。
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方法调用这个函数。而不是直接调用它。
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 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.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
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.
在程序的正常操作过程中,当调用一个函数时,被调用函数的所有参数以及返回位置的指针都放在栈中。
Does not return a pointer to static data; all data is provided by the caller of the function?
不返回指向静态数据的指针;所有数据都由函数的调用者提供。
Values of this type can now be allocated using the built-in function new, which returns a pointer to the value in memory with all slots initialized to the zero value.
现在这一类型的值可以通过内建的函数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函数,返回该指针时,它包含从参数处理过程获得的值。
In earlier versions, it changes the return value of the generated function in_word_set from its default Boolean value (that is, 0 or 1) to the pointer to wordlist array type.
在早期版本中,它将生成的函数in _ word_set返回的默认布尔值(即0或1)修改为pointerto wordlist array类型。
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值的文字表示形式的指针)来模拟此程序。
An array is converted to a pointer to the type of the array; a function is converted to the appropriate pointer to function type.
将数组转换为指向数组类型的指针,将函数转换为指向函数类型的适当指针。
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.
如果函数是虚函数,并且调用是通过引用或者指针,编译器基于动态类型生成代码确定调用哪个版本。
Recall that when we pass an argument of array or function type, that argument is automatically converted to an pointer.
回忆一下,传递数组或函数类型实参的时候,该实参自动转换为一个指针。
If the application needs to subclass a window, it fills in the function pointer with the address of its own function.
如果程序需要为一个窗口生成子类,就在函数指针里填上自己函数的地址。
C plus plus language has the powerful function in pointer and array and object-oriented programming (OOP) technology which are in favor of programming.
语言在指针和数组方面的强大功能,以及面向对象技术,极大地方便了程序的编写。
The static analysis of member call is defined as determining the type of member function pointer or reference in compiling stage.
在面向对象程序设计中,成员调用的静态分析是指在编译阶段确定调用成员函数指针或引用的类型。
The rewind function "rewinds" the position of the file pointer to the beginning of the file.
函数的作用是:将文件指针的位置倒回到文件的开头。
This function moves the file pointer from its current position to a new position, forward or backward, specified by the number of bytes.
整个函数将文件指针从当前位置向前或向后移动移动到一个新的位置。
The layout of the buttons meets the human engineering design specifications, presenting comfortable feeling and integrating the function of laser pointer.
按键布局符合人体工程学设计规范,手感舒适,集成了激光教鞭的功能。
The probability of the failure depends on the time between marshaling the delegate and the callback on the function pointer as well as the frequency of garbage collections.
该故障发生的可能性取决于从封送委托到对函数指针发出回调之间的时间以及垃圾回收的频率。
As long as the address of the function isn't passed to some other routine or stored in a pointer, it should not be callable from other code.
只要函数的地址没有传递给其他程序或存储在指针中,它就不应该从其他代码中调用。
Actually, the information contained by the interface name and function name called disappear at compile time, all that is left is a numeric offset from an as of yet value unspecified pointer.
实际上,由接口名和函数名所包含的信息在编译的时候就消失了,所有剩下的就是从一个还没有指定值的指针开始的一个数字偏移位置。
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.
另外,函数指针只包含对特定函数的引用,而委托由对对象的引用以及对该对象内一个或多个方法的引用组成。
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.
另外,函数指针只包含对特定函数的引用,而委托由对对象的引用以及对该对象内一个或多个方法的引用组成。
应用推荐