清单2提供了一个使用指针参数的稍微复杂的函数。
Listing 2 provides a slightly more complicated function that USES pointer arguments.
避免对指针参数进行高开销的参数检查。
Avoid doing expensive argument checking of pointer arguments.
说明:尝试使用调用的一个指针参数时-系统检测到无效指针地址。
Description: The system detected an invalid pointer address when it tried to use a pointer argument of a call.
系统检测到在一个调用中尝试使用指针参数时的无效指针地址。
The system detected an invalid pointer address in attempting to use a pointer argument in a call.
为所有采用指针参数的成员提供替代指针参数的办法,因为指针不符合CLS。
Do provide an alternative for any member that takes a pointer argument, as Pointers are not CLS-compliant.
在C语言子程序中由于使用了全局变量,或是使用了静态变量,或是使用了指针参数,从而产生副作用。
The side effect of the subprogram is produced by using public variable, or static variable, or pointer parameter in C Program.
这里要用到三个参数:上下文指针、可信任库文件的路径和文件名,以及证书所在目录的路径。
This takes three parameters: the context pointer, the path and the filename of the trust store file, and a path to a directory of certificates.
它对存储局部变量的位置进行重新排序,并复制函数参数中的指针,以便它们也在任何数组之前。
It reorders where local variables are stored, and copies Pointers in function arguments, so that they're also before any arrays.
答案是这个逆序函数的参数是迭代器,概括的指针。
The answer is that the arguments to reverse are iterators, which are a generalization of Pointers.
在程序的正常操作过程中,当调用一个函数时,被调用函数的所有参数以及返回位置的指针都放在栈中。
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.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
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.
这个函数简单地将元素标识符转换为一个指针,然后调用构造函数,将其他参数不加修改地传递给构造函数。
The function simply converts the element identifier into a pointer and then calls the constructor, passing the remaining arguments unchanged.
以后还可以用该SSL指针来检查连接信息或设置其他SSL参数。
This SSL pointer can also be used later to examine the connection information or to set up additional SSL parameters.
使用 BOOST_TEST_CASE宏创建的单元测试以函数指针作为输入参数。
The unit tests that are created using the BOOST_TEST_CASE macros accept function pointers as their input arguments.
函数pthread_cond_wait主要就是用于阻塞线程的,它有两个参数;第一个是一个指向条件变量的指针,第二个是一个锁定了的互斥量。
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.
这是通过输入足够的数据来用伪数据覆盖参数,及输入到不同函数的新返回指针来实现的,现在就执行新的函数了。
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
虚拟内存区域(VMA)指针要作为第一个参数,然后是四个常用的参数(start,end,size和protection标记)。
The virtual memory area (VMA) pointer needs to be added in as the first parameter followed by the usual four parameters (start, end, size, and protection flags).
我们现在知道了这是一个函数指针类型,它可以引用任何有一个int类型参数并且返回一个string类型的方法。
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.
这个函数使用了两个参数:一个long类型,以及一个指向被定义为__user的long的指针。
This function takes two arguments: a long and a pointer to a long that's defined as __user.
现在回到API上来:PPE只能向程序传递一个指针,因此多个参数必须要捆绑在一起传递。
Back to the API: the PPE can pass a single pointer into the program, so multiple arguments have to be bundled up. My solution is this.
顾名思义,_ beginthread函数可以创建一个执行例程的线程,其中将指向该例程的指针作为第一个参数。
As the name suggests, the _beginthread function creates a thread that executes the routine, where the pointer to that routine is specified as the first argument.
如果参数为NULL,则openssl会将字符串写入到一个长度为256字节的静态缓冲区中,并返回指向该缓冲区的指针。
If this parameter is NULL, OpenSSL writes the string to a static buffer that is 256 bytes in length, and returns a pointer to that buffer.
这些参数按照规定都是unsignedlong long类型的,不过有些程序加入了适度的类型双关,将它们当作64位的指针或其他类型。
These arguments are canonically of type unsigned long long, although some programs engage in mild type punning, treating them as 64-bit Pointers or other types.
uap是一个指向socket_args结构的指针,该结构包含传递到socket系统调用中的进程的参数。
Uap is a pointer to the socket_args structure that contains the arguments passed to the process in the socket system call.
execv调用首先取得一个指向要运行的二进制文件名称的指针,然后取得一个指向您前面声明的参数数组的指针。
The call to execv first takes a pointer to the name of the binary to be run, and then a pointer to the array of parameters that you declared earlier.
pthread _ mutex_lock接受一个指向互斥对象的指针作为参数以将其锁定。
Pthread_mutex_lock accepts a single pointer to a mutex to lock.
它由正在对其调用方法的GObject的指针、参数数组和关键字参数数组组成。
It is composed of a pointer to the GObject that the method is being called on, an array of arguments, and an array of keyword arguments.
它由正在对其调用方法的GObject的指针、参数数组和关键字参数数组组成。
It is composed of a pointer to the GObject that the method is being called on, an array of arguments, and an array of keyword arguments.
应用推荐