{"_id":"butils","_rev":"25-533d6f245d0b83b4054ccb943531ab8c","name":"butils","description":"helper functions to make buffers faster","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"butils","version":"0.0.1","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan-lafreniere/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","_id":"butils@0.0.1","dist":{"shasum":"030c92e3eb9ce9179135a0ffca505761b4a760af","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.1.tgz","integrity":"sha512-zzHt7uVAeToXKYO+sD6LKRMyOsVG7TwIJVuC4jJrclebDVtkGkDuS/xyH2w0QsGrEtrVWhiu8qPpeAiqvq2f/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo27g+GdtXpCYIAalJ/WSlZjvqkDzk7GMUvoBHFr6c0gIgCMaikSbDsQxlEeoK0LOt9G7TaQ2B8z39hOVbXYpR+Q8="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"}],"directories":{}},"0.0.2":{"name":"butils","version":"0.0.2","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan-lafreniere/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","_id":"butils@0.0.2","dist":{"shasum":"7d033fc0f737f78a43c15909c8ebcda1a0c94cf3","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.2.tgz","integrity":"sha512-WTLGAYZF+Xarga+Rj208laFD1iAoUuhc+4MYNrDQJkbbHe5gCLViQYnYXpu5FCp+KATqfv4YWTxm1xutr96x5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaY6HBHrzAbyOdHxtrx7ZQ+7b+lfKl87GG/2fiTtlKnAIgBvZWGaWjm0N2zDOwNCF+DYKOLorKQUFGw6wgtmeNFpc="}]},"maintainers":[{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"}],"directories":{}},"0.0.3":{"name":"butils","version":"0.0.3","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan-lafreniere/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","devDependencies":{"audit":"0.0.6"},"_id":"butils@0.0.3","dist":{"shasum":"dab875ffd66d0a91a8fb65313344d873ef909042","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.3.tgz","integrity":"sha512-lAMQl85Aa+rC85J2C/gW/GLAu6TOcYsetZT1+lbw+36g3YAsYfw9ofIlGc64TtBC4jmvpGf4iA457om3/1ulYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDgvr9nWzLIwndOSBm4hGOu2EeCyXP+tWG30/q3GDr4AiEAwjUDDukrtjB152hEgVdwveiFmK8C+VCAUaHmozMT/+4="}]},"maintainers":[{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"}],"directories":{}},"0.0.4":{"name":"butils","version":"0.0.4","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nlf/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","devDependencies":{"audit":"0.0.6","precommit-hook":""},"_id":"butils@0.0.4","dist":{"shasum":"38cdb512111f77fdeed7978eb2a61092a92b9902","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.4.tgz","integrity":"sha512-M4LrYvt3p2bjuhl9ov0bfGja2pBk8Ga2u/iIayGsCCQ9ABhI/BWi82y6Z8nyh7dreoSHu9jl163fycDA+K6iHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZGAyHOKX48MILRSI8xdyqoWrYD38M9ebkdy5O8fvWrwIgfoWa+WT5sIUyscjf0jX7pY4uZqXo1aWhUikjWuhG6Ng="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"}],"directories":{}},"0.0.5":{"name":"butils","version":"0.0.5","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nlf/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","devDependencies":{"audit":"0.0.6","precommit-hook":""},"bugs":{"url":"https://github.com/nlf/node-butils/issues"},"_id":"butils@0.0.5","dist":{"shasum":"c16eec9f0664b8b771d7763f581a3c49e89a45fa","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.5.tgz","integrity":"sha512-54MFqXmSDJaIHPieOdEN4jISbnCUwqW/nGLsCbpebaFwYWhU7GSkj5reU78r9/qMnWqErJjWv557gdXSqfPS2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXvf4dDkqQwUxMRMUojd/Iw51c3WK3xpchUM1xYEum0AiBI/qj7KhWr/yuwiE62e8N4u9L0ipHdXnFKgIJoesgIoA=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nathan-lafreniere","email":"quitlahok@gmail.com"},{"name":"nlf","email":"quitlahok@gmail.com"}]},"0.0.6":{"name":"butils","version":"0.0.6","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nlf/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","devDependencies":{"audit":"0.0.6","precommit-hook":""},"bugs":{"url":"https://github.com/nlf/node-butils/issues"},"_id":"butils@0.0.6","dist":{"shasum":"6eeebea193b51ef38d8edbfb0bef0b8b3d8b6ee3","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.6.tgz","integrity":"sha512-raiRpHi93xJm9XCfvfFNYGiYsy4yaE5J+ZogtKGlO+fb9G1HLw06bpW6C6X8t6c4/CQTXD0Q3b/TPHN5s0oyIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy7reObHblp/phHdyyol8UlqnGq1eOMLNhOubC+zWI8wIhAIvQt6jI/Ctu/A6KRToOLBeJTk/TbeGv9DxYA0/k6WIg"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nlf","email":"quitlahok@gmail.com"}]},"0.0.7":{"name":"butils","version":"0.0.7","description":"helper functions to make buffers faster","main":"index.js","repository":{"type":"git","url":"git://github.com/nlf/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","devDependencies":{"audit":"0.0.6","precommit-hook":""},"bugs":{"url":"https://github.com/nlf/node-butils/issues"},"_id":"butils@0.0.7","dist":{"shasum":"c8e8dc185b8e4573e8b1aa0070c71bc74d9b280f","tarball":"https://registry.npmjs.org/butils/-/butils-0.0.7.tgz","integrity":"sha512-eTK7Adfv/4cm0/gUQmUVu3ZOhNgtGZIljYIm9VRRSHGz7/Ome7jWuwHvsdu5QbznaWAbtpAFZI8EsKSROG/4eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDo1Bg9tzYTisPx8Pylna/GqJ/Hx/W44eS5r+4uCnWCxgIgeEaPELSy2Qcbr7/qgTTX8AS9vcdt9eXxdAvwcF8naSU="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nlf","email":"quitlahok@gmail.com"}]},"0.1.0":{"name":"butils","version":"0.1.0","description":"helper functions to make buffers faster","main":"index.js","scripts":{"test":"make test-cov"},"repository":{"type":"git","url":"git://github.com/nlf/node-butils.git"},"keywords":["buffer","ctype"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","devDependencies":{"audit":"0.0.6","precommit-hook":"","lab":"^3.0.0"},"bugs":{"url":"https://github.com/nlf/node-butils/issues"},"homepage":"https://github.com/nlf/node-butils","_id":"butils@0.1.0","dist":{"shasum":"41e296f55d78faa96cc3fdb8cc7cfa7a66a6a4b8","tarball":"https://registry.npmjs.org/butils/-/butils-0.1.0.tgz","integrity":"sha512-t/gZdU+7aVCgq4hWu2vdHkHvu2+SwHBeTR24yVF8gX5hewTyU7ILVPn4WgrzaPMvF8pKyVLLtsVc53p7OVnacg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICu7aNdnqRl2P8wSupMIBSuxOSpVSCnllqP3LqQpC+TMAiEA1ENLL2gNLudLTEOVP14DJm9VStB1HzcxcNvlooi+DgQ="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nlf","email":"quitlahok@gmail.com"}]}},"readme":"butils\n------\n###Bufferwise binary operations\n - getBit(buffer, offset) returns true or false\n - setBit(buffer, offset, boolean) returns the changed byte\n - XOR(buffer, buffer2) returns the modifed first buffer\n - OR(buffer, buffer2) returns the modifed first buffer\n - AND(buffer, buffer2) return the modifed first buffer\n - NOT(buffer) return the modifed buffer\n - EQUAL(buffer, buffer2) returns a boolean\n - leftShift(buffer, offset) returns a NEW buffer\n - rightShift(buffer, offset) returns a NEW buffer\n - signedRightShift(buffer, offset) returns a NEW buffer\n\n\nThese are some helper functions that appear to be significantly faster than core Buffer manipulation functions.\n\nFunctions included\n\n* readInt(buffer, offset) -- (buffer.readInt8(offset))\n* writeInt(buffer, int, offset) -- (buffer.writeInt8(int, offset))\n* readInt32(buffer, offset) -- (buffer.readUInt32BE(offset))\n* writeInt32(buffer, int, offset) -- (buffer.writeUInt32BE(int, offset))\n* readString(buffer, start, end) -- (buffer.toString(start, end))\n* writeString(buffer, str, offset) -- (Buffer.write(str, 'utf8', offset))\n* readVarint(buffer, offset) -- (no equivalent)\n* writeVarint(buffer, int, offset) -- (no equivalent)\n\nNote that the Int32 functions are currently unsigned and big endian only, though I'd happily accept pull requests to add more functionality.\n\nBenchmark\n=========\n\n100,000,000 iterations of each function. (see bench.js)\n\n* Buffer#writeInt8: 1225ms\n* butils#writeInt: 166ms\n* \n* Buffer#readInt8: 761ms\n* butils#readInt: 164ms\n* \n* Buffer#writeUInt32BE: 1544ms\n* butils#writeInt32: 257ms\n* \n* Buffer#readUInt32BE: 1525ms\n* butils#readInt32: 323ms\n* \n* Buffer#write: 45101ms\n* butils#writeString: 2509ms\n* \n* Buffer#toString: 17505ms\n* butils#readString: 7340ms\n* \n* butils#writeVarint: 1264ms\n* \n* butils#readVarint: 4777ms\n","maintainers":[{"name":"nlf","email":"quitlahok@gmail.com"}],"time":{"modified":"2022-06-13T05:20:14.222Z","created":"2012-11-01T21:37:34.770Z","0.0.1":"2012-11-01T21:37:35.903Z","0.0.2":"2012-11-01T23:30:50.136Z","0.0.3":"2012-11-03T16:04:44.869Z","0.0.4":"2013-03-12T16:45:35.581Z","0.0.5":"2013-08-08T17:53:07.440Z","0.0.6":"2014-01-02T20:52:16.204Z","0.0.7":"2014-01-02T21:26:28.485Z","0.1.0":"2014-04-11T16:02:02.081Z"},"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"repository":{"type":"git","url":"git://github.com/nlf/node-butils.git"},"homepage":"https://github.com/nlf/node-butils","keywords":["buffer","ctype"],"bugs":{"url":"https://github.com/nlf/node-butils/issues"},"license":"MIT","readmeFilename":"README.md"}