假设分配和释放需要常量时间,这个扩容动作花费O (n)时间,这里的n是当前数组的大小。
Assuming allocates and frees run in constant time, this enlargement process takes o (n) time where nis the current size of the array.
当对当前类启用跟踪时,清单7就创建了这些对象和数组。
Listing 7 creates these objects and arrays when trace is enabled for the current class.
与之前一样,可以用一个3d数组保存当前的这些几何分布。
As before, a 3d array is used to maintain the current and working geometries.
这个方法使用当前状态和事件类型作为关联数组的索引,从actionTransitionFunctions表中选择要调用的函数。
The method does select a function to call from the actionTransitionFunctions table using the current state and event type as associative array indexes.
方法getAllChannels()返回包含全部可用频道的一个数组,不管当前用户能不能访问。
The method getAllChannels() returns an array of all available channels whether or not the current user has access to them.
GameServer单例用于它的位置数组,其中保存了游戏面板上每个格子的当前状态。
The GameServer singleton is used for its positions array, which has the current state of each square on the game board.
注意,第二个SQL查询包含了一个问号(?)占位符—运行时,此占位符被data数组中指定的字段当前值替代。
Notice that this second SQL query contains a question mark (?) placeholder - at run-time, this placeholder is replaced by the current value of the fields specified in the data array.
尽管Dictionary类当前与关联数组的包装器相差无几,但这里有一些了解对象功能的线索。
Even though the Dictionary class is currently little more than a wrapper around an associative array, there is some clue to the power of objects here.
execv(2)是替换当前映像的较简单方法之一,因为它不需要关于环境的信息,并且它使用以Null结尾的数组。
Execv (2) is one of the simpler ways to replace the current image, because it doesn't need information about the environment and it USES the null-terminated array.
键名及其时间和类型随后将被添加到当前密码数组中以供稍后处理。
The key name, its time, and type are then added to the current password array for later processing.
这样,传递的数组最少包含一个值(已登录的当前用户的ID),最多则包含当前用户ID和该用户追随的每个用户的ID。
At minimum, this sends in an array with one value in it (the currently logged-in user's ID). At most, it sends the logged-in user's ID and the ID of every user that user is following.
建立到MySQL数据库的ODBC连接,从数据库获取给定帐户持有人的当前帐户数据,并将这些信息存储在一个关联数组中。
An ODBC connection is made to the MySQL database and the current account data for the given account holder is fetched from the database and stored in an associative array.
然后将返回的数据报告给一个php数组,并将其传递给Zend _ Paginator数组数据源,该数据源负责提取当前页面所需的数组子集。
It then massages the returned data into a PHP array and passes it to the Zend_Paginator array data source, which takes care of extracting the array subset required for the current page.
返回全部粒子的一个拷贝,分配所有粒子的数组到当前的粒子。
Returns a copy of all particles and assigns an array of all particles to be the current particles.
函数的作用是:将数组内部的指针移向当前元素的下一个元素,并输出它。
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.
从当前的ZIP文件项读入字节数组。
使用指定的格式信息,将指定的对象数组(后跟当前行终止符)的文本表示形式写入标准输出流。
Writes the text representation of the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information.
检索包含嵌入在UI自动化元素树中的片段根的一个数组,该元素树以当前元素作为根节点。
Retrieves an array of fragment roots that are embedded in the UI Automation element tree rooted at the current element.
从当前目录获取与指定搜索模式匹配的目录的数组。
Gets an array of directories matching the specified search pattern from the current directory.
将字节数组部分写入当前流。
用指定的字节数组更新当前校验和。
Updates the current checksum with the specified array of bytes.
返回一个值,该值指示当前绑定是否可以在服务上生成满足对象数组所指定的条件的通道侦听器堆栈。
Returns a value that indicates whether the current binding can build a channel listener stack on the service that satisfies the criteria specified in an array of objects.
获取名称数组中当前节点的本地名称的索引。
Gets the index of the local name of the current node within an array of names.
返回一个指定用户、指定信息的用户个人资料数组,仅限于当前用户以及当前用户的好友或加入了当前应用的用户。
Returns a wide array of user-specific information for each user identifier passed, limited by the view of the current user.
否则使用指定数组的运行时类型和当前集合的大小创建一个新数组。
Otherwise, a new array is allocated with the runtime type of the specified array and the size of this collection.
一个替换当前列队内容的函数数组。
获取一个数组,该数组表示当前视图中所包含的子视图。
Gets an array representing the child views contained in the current view.
获取一个数组,该数组表示当前视图中所包含的子视图。
Gets an array representing the child views contained in the current view.
应用推荐