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:
Jamie Doornbos
2008-11-04 06:41:00 +00:00
parent be8597a5c1
commit 4633684fb6
2 changed files with 23 additions and 8 deletions
+8
View File
@@ -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.
*/