Copied code from java implementation of Throttle.reinit(). After testing, I found this method was leaving older values in the middle of younger values
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5497 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -228,6 +228,14 @@ public class ArrayUtil
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function copy (
|
||||
src :Array, srcoffset :uint, dst :Array, dstoffset :uint, count :uint) :void
|
||||
{
|
||||
for (var ii :uint = 0; ii < count; ++ii) {
|
||||
dst[dstoffset++] = src[srcoffset++];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of remove methods.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user