👁 查看:inplace.js
路径:/home/boguraj1/public_html/jobsite/node_modules/buffer-xor/inplace.js
大小:186 B · 修改:2022-11-21 20:07:10 · 权限:0644 · 可写
module.exports = function xorInplace (a, b) {
  var length = Math.min(a.length, b.length)

  for (var i = 0; i < length; ++i) {
    a[i] = a[i] ^ b[i]
  }

  return a.slice(0, length)
}