Sha256: 150010919f09c03465bb526b1dcf2ee06b1b449c09eb577b085368297fa857ee

Contents?: true

Size: 186 Bytes

Versions: 43

Compression:

Stored size: 186 Bytes

Contents

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)
}

Version data entries

43 entries across 42 versions & 15 rubygems

Version Path
ilog-0.4.0 node_modules/buffer-xor/inplace.js
ilog-0.3.3 node_modules/buffer-xor/inplace.js
jester-data-8.0.0 node_modules/buffer-xor/inplace.js
ezii-os-5.2.1 node_modules/buffer-xor/inplace.js
ezii-os-2.0.1 node_modules/buffer-xor/inplace.js
ezii-os-1.1.0 node_modules/buffer-xor/inplace.js
ezii-os-1.0.0 node_modules/buffer-xor/inplace.js
ezii-os-0.0.0.1.0 node_modules/buffer-xor/inplace.js
ezii-os-0.0.0.0.1 node_modules/buffer-xor/inplace.js
optimacms-0.4.3 spec/dummy/node_modules/buffer-xor/inplace.js
optimacms-0.4.2 spec/dummy/node_modules/buffer-xor/inplace.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/buffer-xor/inplace.js
locomotivecms-3.4.0 app/javascript/node_modules/buffer-xor/inplace.js
cortex-0.1.3 spec/dummy/node_modules/buffer-xor/inplace.js
dragonfly_puppeteer-0.1.0 node_modules/buffer-xor/inplace.js
lanes-0.8.0 node_modules/buffer-xor/inplace.js
minimum_viable_product-0.0.11 test/dummy/node_modules/buffer-xor/inplace.js
brwy_rails-0.0.6 test/dummy/node_modules/buffer-xor/inplace.js
brwy_rails-0.0.5 test/dummy/node_modules/buffer-xor/inplace.js
brwy_rails-0.0.4 test/dummy/node_modules/buffer-xor/inplace.js