{"_id":"bice","_rev":"25-7696ae2f5341ba0ed7fcc7400b063c3d","name":"bice","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"bice","version":"0.1.0","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"db703a2248ebfd8d90060e42d92183435bd75e87","_id":"bice@0.1.0","_shasum":"d85259ef1156820e274844ddab3c95a64e2963b0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"d85259ef1156820e274844ddab3c95a64e2963b0","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.0.tgz","integrity":"sha512-l0KxSzYSeVDM4cCd5vtI32+kMNWw8ejTqKUVZP89BykBKKrZ03AYh0WXdOFs8Sb9h+4FPSg/3E7Mi780xn+SPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEiWLBLVftcb1h8tQHn3TOP2a702CaJdKbgE7OcOsrAYAiEAlr5zwfi4t2WJ2KCIPG9ZJtkffcCc/D4+Y6HDH/+f9dc="}]}},"0.1.1":{"name":"bice","version":"0.1.1","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"04d4d2e597b0c2f7941ef99b44dc37a56b33d476","_id":"bice@0.1.1","_shasum":"c21bc6f36eb4311b43d35131b3b6300a8005fba3","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"c21bc6f36eb4311b43d35131b3b6300a8005fba3","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.1.tgz","integrity":"sha512-1F4++AgSj8y9zNDdfVXL+WV9slIPCZcLElwhjdZH3R7T6YywCUKaBK8isvRa8b2frbV+Fsz2NGdX2HVoCs4nHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDR67t0o6RGnOxGPIT1uEmv5EgZttCOvyFI0c/coFkV6AiEAvSYgs7AAkfinmbG8jxsJRaa1v4y9S2u7lo1Emfef1OU="}]}},"0.1.2":{"name":"bice","version":"0.1.2","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"46c810500256fad4a49b0911f049aee43871a55e","_id":"bice@0.1.2","_shasum":"a0995b05f0362ef32df8055090c36778decf43b3","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"a0995b05f0362ef32df8055090c36778decf43b3","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.2.tgz","integrity":"sha512-/sU6Yoh1d0B3V1DyFEdSftEpwn7WTbTvsjnM306YRy+1FZYT1fHEb8Jk7lZO3h2PgDbC6lIkxJ8xxt6Uslfx0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN7gYttnF6ZegOKFsUR6n+OtZxQkJCn54pZexd20+4DgIhAKBNDoifigA7kj7buOGqcbr8HBn07sgtyMWnwrmpYTPZ"}]}},"0.1.3":{"name":"bice","version":"0.1.3","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"e5249675e159ff5da5af7155d3a5b36f9192b161","_id":"bice@0.1.3","_shasum":"a3cfbfb921a9d4d274083fc26f6fafdc74f7b029","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"a3cfbfb921a9d4d274083fc26f6fafdc74f7b029","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.3.tgz","integrity":"sha512-R9oVHa9DuGKwSYUpNZuYyNSTekudX8Ch3OgzW1hlH9EjQpBHkV6+eAZbfTa2xfULNuKBb5tyE8+cEDjpzDA1vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ6jcb9gFz/VFmuxM92TeJligizWarY1MSjVUJBZqoZQIgczU3DtatY9UFlWO/8xRGmACzFkEDRM6Y68h3wMWcsJ8="}]}},"0.1.4":{"name":"bice","version":"0.1.4","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"525bc9c57e4912627b79facf2ba8800e55ffda30","_id":"bice@0.1.4","_shasum":"da8a686d5eb011ade4362aa270ca58d2ebe73964","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"da8a686d5eb011ade4362aa270ca58d2ebe73964","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.4.tgz","integrity":"sha512-voeBQ/R0apjHE8CletXF/FgeftDIG8znVwGlb8SC6Q7lCxuLIDMY1O5sjfs5GpmR+1mE3G9dBiDafcwahiRhWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGU9cGLJjSKhIxKMf8XcyalXRaJSwjywGsQkEF8N1wwyAiEAz5QMTvOsuV1KKs9rA8k919HTLt6/0nLLTD73MwGdRbE="}]}},"0.1.5":{"name":"bice","version":"0.1.5","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"b44b05db71618ff76185429d6ac4a0b4e94c731a","_id":"bice@0.1.5","_shasum":"3670072bc21855a89b09f89d7fca78c4adb7e9e0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"3670072bc21855a89b09f89d7fca78c4adb7e9e0","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.5.tgz","integrity":"sha512-AJ4KL/dOOVrhq7Z7ocMMqQolJta0AbwopPektEaymjDoV9EnbUC9WC1y9EC+vU0jAkMn9u4vcIrLvYzKHk6wPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTNhUy9Lb/ROPAEmFMympwNT4N037wTWCNkBNktIARUQIgE2uhV0QLjC6rtnq4XPKowD78f+N03pmAoey+ssvdYTg="}]}},"0.1.6":{"name":"bice","version":"0.1.6","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"73dc0e121ab8313bbbec5fa9ca6afcc74ebef3f2","_id":"bice@0.1.6","_shasum":"a322c8ca94b91b3c2ce48a592414181adef9b4c9","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"a322c8ca94b91b3c2ce48a592414181adef9b4c9","tarball":"https://registry.npmjs.org/bice/-/bice-0.1.6.tgz","integrity":"sha512-q9vTvi89RTacu2wGFHTep1dRYkn7hTuDso1jNFn6gehX7q3RB9iR/SlcmlSsY4ooZWn45VmLFROVQIA37j5ehA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA30a2gK0qEzyQ5aigzA3lwmfMcAkvEaGyIw/6/Qj0eIAiEA5vpnD/FGvhkAZ77SczyOPOUBukd/7kBsu+2AfUN50nE="}]}},"0.2.0":{"name":"bice","version":"0.2.0","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"7f211029843a421a709f31ea6dd7e459dbf2aab0","_id":"bice@0.2.0","_shasum":"db41b7fef842380ed6b9f023baca1e75accf6abc","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"db41b7fef842380ed6b9f023baca1e75accf6abc","tarball":"https://registry.npmjs.org/bice/-/bice-0.2.0.tgz","integrity":"sha512-bgoncGCEuXtqcPnJ+x0pJ1eEazwyy/7uYJXIeUnFO4bPe2q0VnJQVExYRtz4EmbQebO9JT9091d4uXjmWpEhyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCJW6T4KFjJDQd6QeUweYjuqlT5Wayn5R3niqzXDvA4AiEA3L5R3/1Fe0DbNwBKhuHdNGEyIbrhNyr270+iPy0Rq7g="}]}},"0.2.1":{"name":"bice","version":"0.2.1","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"a94980322886fbf566b06d97e2cf564b7eab5813","_id":"bice@0.2.1","_shasum":"03aeb4f05cc0b0907466bcdf8758577436566eb8","_from":".","_npmVersion":"2.2.0","_nodeVersion":"1.0.3","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"03aeb4f05cc0b0907466bcdf8758577436566eb8","tarball":"https://registry.npmjs.org/bice/-/bice-0.2.1.tgz","integrity":"sha512-V1mq/t7tXCm7Y3wWXcO46O4hh8sD7KHQiPobP5Hf2HbiyEyoWTwPZT8tMmQnRIgC0Boz8rvdC8b9VOOOE45rUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb10gWxp93TQSotuaCppWQqEuQXRs1kVA7ofnWgrZ6dwIhAPVGiusA5BKFAVjqOzWWQwhPi7Ljtw2O9rdOqDubOk8v"}]}},"0.2.2":{"name":"bice","version":"0.2.2","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"d79260284679999a5a0727cac1ab289e00bfdcde","_id":"bice@0.2.2","_shasum":"4431f5de540ade99b0bcfaa37156b59ef0d17e73","_from":".","_npmVersion":"2.2.0","_nodeVersion":"1.0.3","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"4431f5de540ade99b0bcfaa37156b59ef0d17e73","tarball":"https://registry.npmjs.org/bice/-/bice-0.2.2.tgz","integrity":"sha512-HLXmeXLkggwjNqBOY7v7slQkvdNMKGDC9jYVpPKiqCvgBQ06TaSHT+OcD/+vhEzxQ7bbhJJo4OgKJmKH+5BIgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtx7coiOloFN+fD2vNFvzw0T/6wG+WnubkfErkkqsyGAiEAx8yG0XNyFRHhqaAhZmfqTL+TRT+C2l4IMVp36dfvnqs="}]}},"0.2.3":{"name":"bice","version":"0.2.3","description":"Bice, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise XOR operator.","homepage":"https://github.com/rootslab/bice","private":false,"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"dependencies":{},"devDependencies":{"dado":">=0.2.0"},"main":"index","engines":{"node":">=0.10.x"},"scripts":{"test":"node test/run.js"},"license":"MIT","bugs":{"url":"https://github.com/rootslab/bice/issues"},"gitHead":"a68c43ffe046790d304c0c4ad2aa3c5a5fd76c0c","_id":"bice@0.2.3","_shasum":"aeffd09c064b63706421051af3f16d9e0265e76c","_from":".","_npmVersion":"2.2.0","_nodeVersion":"1.0.3","_npmUser":{"name":"rootslab","email":"admin@rootslab.it"},"maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"dist":{"shasum":"aeffd09c064b63706421051af3f16d9e0265e76c","tarball":"https://registry.npmjs.org/bice/-/bice-0.2.3.tgz","integrity":"sha512-QDmgEoOXmDaqWOh9RKih4miIqoViFgbUF7oB4NN9vTvgipcZ5DOoGwHLtYF73CEpXPIlXhdt+aOeB6YcjLCUoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2tWkw/JM3iaVC7FYWhkEdE4xPMozVVnmY3k2WCBd5CwIgCuMD87zhhj5erHpkjXNxYf7ek+qGzDlwgm92WYr2ovc="}]}}},"readme":"### Bice\n\n[![NPM VERSION](http://img.shields.io/npm/v/bice.svg?style=flat)](https://www.npmjs.org/package/bice)\n[![CODACY BADGE](https://img.shields.io/codacy/b18ed7d95b0a4707a0ff7b88b30d3def.svg?style=flat)](https://www.codacy.com/public/44gatti/bice)\n[![CODECLIMATE](http://img.shields.io/codeclimate/github/rootslab/bice.svg?style=flat)](https://codeclimate.com/github/rootslab/bice)\n[![CODECLIMATE-TEST-COVERAGE](https://img.shields.io/codeclimate/coverage/github/rootslab/bice.svg?style=flat)](https://codeclimate.com/github/rootslab/bice)\n[![LICENSE](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/rootslab/bice#mit-license)\n\n[![TRAVIS CI BUILD](http://img.shields.io/travis/rootslab/bice.svg?style=flat)](http://travis-ci.org/rootslab/bice)\n[![BUILD STATUS](http://img.shields.io/david/rootslab/bice.svg?style=flat)](https://david-dm.org/rootslab/bice)\n[![DEVDEPENDENCY STATUS](http://img.shields.io/david/dev/rootslab/bice.svg?style=flat)](https://david-dm.org/rootslab/bice#info=devDependencies)\n[![NPM DOWNLOADS](http://img.shields.io/npm/dm/bice.svg?style=flat)](http://npm-stat.com/charts.html?package=bice)\n\n[![NPM GRAPH1](https://nodei.co/npm-dl/bice.png)](https://nodei.co/npm/bice/)\n\n[![NPM GRAPH2](https://nodei.co/npm/bice.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/bice/)\n\n[![status](https://sourcegraph.com/api/repos/github.com/rootslab/bice/.badges/status.png)](https://sourcegraph.com/github.com/rootslab/bice)\n[![views](https://sourcegraph.com/api/repos/github.com/rootslab/bice/.counters/views.png)](https://sourcegraph.com/github.com/rootslab/bice)\n[![views 24h](https://sourcegraph.com/api/repos/github.com/rootslab/bice/.counters/views-24h.png)](https://sourcegraph.com/github.com/rootslab/bice)\n\n> __Bice__, a tiny module that offers a fast way to swap arbitrary length sequences of bytes within a Buffer, using only the Buffer itself and the bitwise __XOR__ operator.\n\n###Install\n\n```bash\n$ npm install bice [-g]\n```\n\n> __require__ returns an helper hash/obj.\n\n```javascript\nvar Bice  = require( 'bice' );\n```\n###Run Tests\n\n> __to run all test files, install devDependecies:__\n\n```bash\n $ cd bice/\n # install or update devDependecies \n $ npm install --dev\n # run tests\n $ npm test\n```\n> __to execute a single test file simply do__:\n\n```bash\n $ node test/file-name.js\n```\n\n### Methods\n\n> Arguments within [ ] are optional.\n\n```javascript\n/*\n * Swap 2 sequences in a Buffer, swapping 1 byte at the time.\n * It returns true if swapping was successfull, false otherwise.\n *\n * NOTE:\n * - sequences shouldn't overlap.\n * - sequences shouldn't overflow Buffer length.\n * - sequence 1 starts from pos1 and ends to pos1 + bytes - 1.\n * - sequence 2 starts from pos2 and ends to pos2 + bytes - 1.\n * - pos1 could be > than pos2, the order of indexes doesn't matter.\n */\nBice#swap : function ( Buffer buffer, Number pos1, Number pos2 , Number bytes ) : Boolean\n\n/*\n * Reverse an entire Buffer or a part of it, swapping 1 byte at the time.\n * It returns true if reversing was successfull, false otherwise.\n */\nBice#reverse : function ( Buffer buffer [, Number pos [, Number bytes ] ] ) : Boolean\n\n/*\n * Compares values from 2 buffers.\n * Optionally, it accepts the number of bytes to read; if it is not specified,\n * it compares a number of bytes equals to the length of the smaller Buffer.\n *\n * It returns:\n *\n * -  0 when b1 === b2\n * - +1 when b1 > b2\n * - -1 when b1 < b2\n * - null otherwise (read index overflow, 0-length Buffers, ..)\n *\n */\nBice#compare : function ( Buffer b1, Number p1, Buffer b2, Number p2 [, Number bytes ] ) : Number\n```\n\n### MIT License\n\n> Copyright (c) 2014 &lt; Guglielmo Ferri : 44gatti@gmail.com &gt;\n\n> Permission is hereby granted, free of charge, to any person obtaining\n> a copy of this software and associated documentation files (the\n> 'Software'), to deal in the Software without restriction, including\n> without limitation the rights to use, copy, modify, merge, publish,\n> distribute, sublicense, and/or sell copies of the Software, and to\n> permit persons to whom the Software is furnished to do so, subject to\n> the following conditions:\n\n> __The above copyright notice and this permission notice shall be\n> included in all copies or substantial portions of the Software.__\n\n> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[![GA](https://ga-beacon.appspot.com/UA-53998692-1/bice/Readme?pixel)](https://github.com/igrigorik/ga-beacon)","maintainers":[{"name":"rootslab","email":"admin@rootslab.it"}],"time":{"modified":"2022-06-13T04:35:33.187Z","created":"2014-12-14T18:06:31.493Z","0.1.0":"2014-12-14T18:06:31.493Z","0.1.1":"2014-12-14T18:12:04.629Z","0.1.2":"2014-12-14T18:19:45.458Z","0.1.3":"2014-12-18T04:08:24.763Z","0.1.4":"2014-12-20T03:21:50.058Z","0.1.5":"2014-12-21T04:23:44.999Z","0.1.6":"2014-12-21T05:03:40.327Z","0.2.0":"2014-12-21T05:38:34.653Z","0.2.1":"2015-01-20T01:49:49.777Z","0.2.2":"2015-01-20T02:12:06.971Z","0.2.3":"2015-01-20T02:59:55.143Z"},"homepage":"https://github.com/rootslab/bice","keywords":["bice","Buffer","swap","reverse","compare","XOR","bitwise","util"],"repository":{"type":"git","url":"git://github.com/rootslab/bice.git"},"author":{"name":"Guglielmo Ferri","email":"44gatti@gmail.com"},"bugs":{"url":"https://github.com/rootslab/bice/issues"},"license":"MIT","readmeFilename":"Readme.md","users":{"rootslab":true}}