{"_id":"buffercursor","_rev":"27-c71197f4620b5549e07b0a9e8d1b2b0d","name":"buffercursor","description":"A simple way to traverse a Buffer like a cursor, updating position along the way","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"buffercursor","version":"0.0.1","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.1","dist":{"shasum":"6536d6c4986b05b90745b991d7a3565defb9b4f7","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.1.tgz","integrity":"sha512-WGWeRcDxssmTeQI/W77yeueKv1aKvNUDVGp3LHNM3GcalvG79j1F2mOodsdLFaObHU4GFsPhg+pkr3XwzDAYpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5u1+5lwS0u+nhFfGySt4MPN438MzloHXMHpSrKfFD4AiEAwms2+GKPMfNNd5hjWPp4/vDn/AwFPeYqHhYVHXZqf5Y="}]},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.2":{"name":"buffercursor","version":"0.0.2","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.2","dist":{"shasum":"31815f9919830fcac1f025c8c4df2e9b571f6ae2","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.2.tgz","integrity":"sha512-O1Vnu7VFjETmShoXRryS1cBIPIjBAupdYVvNFcegrseZSIoMhAzINwB9wZQ7Ov9TLdp8g6A0DuL6vsnws9ASsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwNnDPz/P2AZ4Z3Xk+cHi7AsovuyzhjlIp53PHQ1+aewIgYr/Metp+3Sybw7cVnviM7sIKKRbnQYLf16F8t+Kyf7I="}]},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.3":{"name":"buffercursor","version":"0.0.3","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.3","dist":{"shasum":"ff1f474ee6aaa095f5d5baaa75190d71d3da4bff","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.3.tgz","integrity":"sha512-ewJNRbMiwruWbwJ2L9NYp6Fi4Oqskz2xwrZoe+6l3MFtHEjViNLXMsdK3LIbIwlIdV12qjTnSsugv9hxOjJ0Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCovwjHUmTxg95qfVRAUivFigkfSklJBocxeq5+ImIVfgIhAOwMQXMEbwCZmdMwFxeK8YoehiysquIdJdee11LQYXOg"}]},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.4":{"name":"buffercursor","version":"0.0.4","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.4","dist":{"shasum":"aed6440e12f40636bb5f541d9b3711626fbb52f6","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.4.tgz","integrity":"sha512-QMmI+McfCsRGARgyO3ZwyTrTCsXc+Z3Y7kZQuyLG+PvJcNRg8fzxw/fjplWw/cBxyctRxaHAnkh9Y8URyudBdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDtsDSC7U7i50MY8RHj+K0sn9hCzzcfY7fmuo+EG+ZdAiEAouqxk6ug88JkJlUwtR4HIgbpMU0oaklOssdCk9TsdPs="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.5":{"name":"buffercursor","version":"0.0.5","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.5","dist":{"shasum":"3348b37693ad7460bf5584437ec45af76566c5c7","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.5.tgz","integrity":"sha512-uobBu/CJaD4oWMnM5S8cjILNHqurP6aD7ZoNAcNqZHBlkKXeWMxsJ8FvY8UCTs8c7wHRHJnSMiXpeXRPTrau0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASqA6xxPp0itfMJbzh8JCOBhGCO/9OCcK9KDjhzeMB/AiEA2eqDJXk4U06JJaWeiYn44cGysXy/cbomZxV2XiWd7Ig="}]},"_npmVersion":"1.1.70","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.6":{"name":"buffercursor","version":"0.0.6","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.6","dist":{"shasum":"bd905b80cf5b3b588cdf278308a4e95c0409dcb4","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.6.tgz","integrity":"sha512-UlS9XTPvgmyMvv4yQ78dy37zVyPDG/fZAkcTu9yPqql4FkmsZtLgb3DK165BXHCrO2lcPf2g9/+EwlX0KBOUTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQYKIgDpbDms/CzYGyvmlUqcbb4uVhn5LG5jav6MKgaAIgGN8E+i1XM5VRNOiygI7yuGl9TL8AhOMFIsz3sWY7JrM="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.7":{"name":"buffercursor","version":"0.0.7","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.7","dist":{"shasum":"941277859cd02e52d6dbf8f353a0446d65ed14ae","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.7.tgz","integrity":"sha512-5rjyOkfyrcP7uxnCBj2+c4J3CjUEIULNdc9HzT5ZprM3RxHmuHKwd2dHBVc5mbQtJzf4A18p9kOGBa4JetoAhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFTiZ2FUgdKblPZLiYNHciN8X+R5MLdwpE2xY/adwFjQIhAI21pm0KyOOu0p38wU0vrw2yd7wZnun3Lt5Gx61lgOP2"}]},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.8":{"name":"buffercursor","version":"0.0.8","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.8","dist":{"shasum":"911687a7941b1a7c7176e5228ab59a5e99dd788c","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.8.tgz","integrity":"sha512-U5Ff0uJprvN8tjHybGVNJSyOJRvZHuWXP1Wnn8JypjOvJPSDzxCtrUCos+CGH5br7s3c7dcblq2v3NGGjwyfaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvFSVjDRQwcIezKsrZecRfIiIPt3CFqotYyooODNO0gAIhALT7LPX3J4xyxDarNYz3Wdp0CNJyC4A5/A9bRaD0VaxD"}]},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.9":{"name":"buffercursor","version":"0.0.9","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"_id":"buffercursor@0.0.9","dist":{"shasum":"a9f18597b166d698e8206ffd5963d9c49563ff28","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.9.tgz","integrity":"sha512-ENaHxV5/hKvBrHt2YnDnaEbsQ9NR5uQovxdJDRoyBTYZpjjvsMlv8srdUo2nkY5SUPXia7XFRSdgTFSkhwiHzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsVaB3j2b2UgiAZglr8nxyVFa3gz/gcEEbcJ2CRpCnggIgaOUNffd9ZTD+nczga3gcVVNHAajAWND6zysnno9pZXM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.10":{"name":"buffercursor","version":"0.0.10","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"dependencies":{"verror":"^1.4.0"},"_id":"buffercursor@0.0.10","dist":{"shasum":"8d5cdd23ac58824f84b85c59c17ae70b52a7d12a","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.10.tgz","integrity":"sha512-ZSElVuUo2ySW2Kt3SeYPwUREA9nh6RTe1FMVHze8cg+1IeT6V+HzQMty/Dj6tNLdjtl88gH58ntA9MuETfXfiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVFnAuKEeH8OLzvmWSJ3bLdyHuvR6Fnt5IqGGUymmaigIhAIs91OhKMO/9VxOvxDvAz7qQPwiUuCGqLFbohOkDqdNQ"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.11":{"name":"buffercursor","version":"0.0.11","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"dependencies":{"verror":"^1.4.0"},"_id":"buffercursor@0.0.11","dist":{"shasum":"b3df2576f03f3512358f724c568a46966ed040b6","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.11.tgz","integrity":"sha512-d8qFlhoWD7SPgC1MKF6p8VqtOu50xdO9LpoAWFQSdOXR1IBQ87OrXfUA9K2b6JoLAdB56fYc/uqimWzHFrzjSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmGmN30iuDKswn7ONxcAjyP+c0ySDVMJLE4mmYak45zAiAKfu2fwmFvfkljTQZgSTBkorj1AR8o3GMfsQi+WkwjIw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]},"0.0.12":{"name":"buffercursor","version":"0.0.12","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"A simple way to traverse a Buffer like a cursor, updating position along the way","keywords":["buffer","cursor","stream"],"homepage":"http://github.com/tjfontaine/node-buffercursor","bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"main":"buffercursor.js","engines":{"node":">= 0.5.0"},"dependencies":{"verror":"^1.4.0"},"_id":"buffercursor@0.0.12","dist":{"shasum":"78a9a7f4343ae7d820a8999acc80de591e25a779","tarball":"https://registry.npmjs.org/buffercursor/-/buffercursor-0.0.12.tgz","integrity":"sha512-Z+6Jm/eW6ITeqcFQKVXX7LYIGk7rENqCKHJ4CbWfJMeLpQZJj1v70WehkLmp+1kFN/QyCgpQ3Z0dKUHAwSbf9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAvas4lu2YGfgnaVIRbnemSuTrgMC0UWAMA9OYmw6ZMyAiAfL/kA6TpCywE9O3VGQaNFE17qq9wxqLv3e2J5RVBHqw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}]}},"readme":"BufferCursor\n============\n\nThis is a simple module that allows you to traverse a Buffer iteratively. You\ncan read and write different types and the cursor's position will update with\nthe proper size, which you can see through `.tell()` you can also\n`.seek()`\n\n```javascript\nvar bc = new BufferCursor(buffer);\nbc.readUInt16BE();\nbc.readUInt8();\nbc.readUInt32BE();\nconsole.log(bc.tell());\n```\n\nWill output `7`\n\nMethods\n-------\n\nFor the most part `BufferCursor` and `Buffer` share the same methods, there's\njust a slight alteration in method signature, none of the methods take an\noffset.\n\nSo `.readUInt16LE(10)` in `Buffer` is equivalent to `bs.seek(10); bs.readUInt16LE();`\n\nAll `read[U]Int` and `write[U]Int` methods are reproduced, as are `toString`,\n`write`, `fill`, and `slice`. All of these methods will move the cursor through\nthe stream and do not take an offset parameter, where an `end` parameter would\nnormaly be used, here you supply a `length`.\n\nThe following are additional methods:\n\n * `seek(value)` -- Seek to an arbitrary position in the stream\n * `tell()` -- Return the current location in the stream\n * `eof()` -- Return true if at the end of the stream\n * `toByteArray([method])` -- This is a special helper method which will return\nthe *entire* stream (i.e. from the start) as an array of numbers.\n  - By default it will use `readUInt8` but you can pass in any\n`read[U]Int[8,16,32][LE,BE]` to change what the array is made of\n\nProperties\n----------\n\n * `.buffer` -- Access to the raw buffer\n * `.length` -- The size of the buffer\n","maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}],"time":{"modified":"2022-06-13T05:15:33.172Z","created":"2012-07-01T18:23:51.629Z","0.0.1":"2012-07-01T18:23:52.229Z","0.0.2":"2012-07-02T13:53:22.075Z","0.0.3":"2012-07-02T21:52:14.948Z","0.0.4":"2012-08-26T02:36:19.456Z","0.0.5":"2012-12-24T00:22:15.237Z","0.0.6":"2013-03-23T17:00:18.973Z","0.0.7":"2013-05-20T02:01:17.638Z","0.0.8":"2013-05-31T15:25:53.861Z","0.0.9":"2014-02-19T16:51:44.902Z","0.0.10":"2014-04-20T21:27:50.908Z","0.0.11":"2014-04-20T21:38:24.165Z","0.0.12":"2014-04-21T01:38:50.457Z"},"author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"repository":{"type":"git","url":"http://github.com/tjfontaine/node-buffercursor.git"},"readmeFilename":"README.md","homepage":"http://github.com/tjfontaine/node-buffercursor","keywords":["buffer","cursor","stream"],"bugs":{"url":"http://github.com/tjfontaine/node-buffercursor/issues"}}