Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "bops", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "buffer operations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,6 +15,9 @@ module.exports = copy | ||
function fast_copy(from, to, j, i, jend) { | ||
for(var iend = jend + i; i < iend; ++i) { | ||
to[j++] = from[i] | ||
} | ||
function fast_copy(source, target, target_start, source_start, source_end) { | ||
for(var i = target_start, len = source_end - source_start + target_start, j = source_start; | ||
i < len; | ||
++i, | ||
++j) { | ||
target[j] = source[i] | ||
} | ||
} | ||
@@ -21,0 +24,0 @@ |
module.exports = join | ||
function join(targets, hint) { | ||
if(!targets.length) { | ||
return new Uint8Array(0) | ||
} | ||
var len = hint !== undefined ? hint : get_length(targets) | ||
@@ -5,0 +9,0 @@ , out = new Uint8Array(len) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20169
547