By simply copying the array reference instead of cloning it, both the message and the class that produces it hold a reference to the master copy of the previous bids array.
通过简单地复制而不是克隆数组引用,消息和产生消息的类都保存了前一投标数组的主副本的一个引用。
When you then update the array's contents with ReleaseLongArrayElements , another copy of 8,000 bytes might be required to update the array.
当您随后使用ReleaseLongArrayElements更新数组的内容时,需要另外复制8,000字节的数据来更新数组。
For the new CopyOnWriteArrayList and CopyOnWriteArraySet classes, all mutable operations make a copy of the backing array first, make the change to the copy, and then replace the copy.
对于新的CopyOnWriteArrayList和copyonwritearrayset类,所有可变的(mutable)操作都首先取得后台数组的副本,对副本进行更改,然后替换副本。
Even though arrays are mutable, the function equalize returns its array. This is useful if you only want to equalize a copy of the model.
即使数组是动态改变的,equalize函数照样可以返回它的数组。
By using these methods to access larger arrays, you can ensure that you copy only the region of the array that the native will actually use.
通过使用这些方法访问较大的数组,您可以确保只复制本机代码将要实际使用的数组部分。
On a JVM that provides a direct pointer to the array, the array will be updated; however, on a JVM that returns a copy it will not be.
在提供直接指向数组的指针的JVM上,该数组将被更新;但是,在返回副本的JVM上则不是如此。
If it does, the cached copy is used to populate the Zend_Paginator data array, and pagination proceeds as usual.
如果是,缓存的副本被用于填充zend _ Paginator数据数组,分页照常继续。
If you do not wish to sort the source array, you can always make a copy of it.
如果你不希望源数组排序,你可以将它复制。
Returns a copy of all particles and assigns an array of all particles to be the current particles.
返回全部粒子的一个拷贝,分配所有粒子的数组到当前的粒子。
However, the resetting to zero does not work as intended, because only the local copy of each element is reset to zero, while the original element is left unchanged in the original array.
但是,将元素重置为零的操作无法完成,因为只有每个元素的本地副本被重置为零,而原始数组中的原始元素却保留未变。
The following example USES Pointers to copy bytes from one array to another.
下面的示例使用指针将字节从一个数组复制到另一个。
The following example USES Pointers to copy bytes from one array to another.
下面的示例使用指针将字节从一个数组复制到另一个。
应用推荐