Any stream with an internal buffer should override this method and provide a much more efficient version that writes to the buffer directly, avoiding the extra array allocation on every call.
所有具有内部缓冲区的流都应重写此方法,提供一个直接写入缓冲区的有效得多的版本,以避免每次调用时都要进行额外的数组分配。
On the other hand, Oracle requires explicit allocation operations prior to adding elements to an array.
另一方面,在将元素添加到阵列以前,Oracle需要明确的分配操作。
You can, for example, use a vector in much the same way as you would use an ordinary C array, except that vector eliminates the chore of managing dynamic memory allocation by hand.
举个例子,你可以使用vector就像使用普通的c数组,除了vector不能手工申请管理动态内存。
Because normals are required and the array may have not been created before, there is always the possibility of a memory allocation problem.
因为法线是必须的但是有可能还未被创建,那里可能会产生内存分配问题。
Although this requires the initial allocation of the array to be complete in function calling code (which looks somewhat elegant).
尽管这需要数组进行原始分配,在进行函数调用的代码中实现分配(这看起来比较优雅)。
Although this requires the initial allocation of the array to be complete in function calling code (which looks somewhat elegant).
尽管这需要数组进行原始分配,在进行函数调用的代码中实现分配(这看起来比较优雅)。
应用推荐