{"name":"bytebuffer","version":"0.9.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A Java-like ByteBuffer implementation using typed arrays.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"ByteBuffer.js","repository":{"type":"git","url":"https://github.com/dcodeIO/ByteBuffer.js.git"},"keywords":["net","buffer"],"dependencies":{},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"_id":"bytebuffer@0.9.0","dist":{"shasum":"d2fa3d4079c963265362a5741fcec4eb9d99e9ac","tarball":"http://registry-npm.ywwl.com/bytebuffer/download/bytebuffer-0.9.0.tgz","integrity":"sha512-rD530LbAgM+j1tka0rRmVihuTrOHnNv1Thgi6VgA/vIwmF5pMOmoOuZgwPOqEXqm7twd23EOkr/dEVqwutF92A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbdYqEiXdAD2k4jVvW+l0Bq7kIZP3kVX8FR6jNyms31AIhAKqxyXwgkXAFdVoj7FgxaQ3WFwBejg/zuv9ixKxl87D+"}],"size":37481,"noattachment":false,"key":"/bytebuffer/-/bytebuffer-0.9.0.tgz"},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{},"readme":"![bytebuffer.js - The swiss army knife for binary data in JavaScript.](https://raw.github.com/dcodeIO/bytebuffer.js/master/bytebuffer.png)\r\n======================================\r\nA fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js,\r\ngenerated from a single source tree through [MetaScript](https://github.com/dcodeIO/MetaScript).\r\n\r\n[![Build Status](https://travis-ci.org/dcodeIO/bytebuffer.js.svg?branch=master)](https://travis-ci.org/dcodeIO/bytebuffer.js)\r\n[![Donate](https://raw.githubusercontent.com/dcodeIO/bytebuffer.js/master/donate.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dcode%40dcode.io&item_name=%3C3%20bytebuffer.js)\r\n\r\nFeatures\r\n--------\r\n* Three API-compatible versions:\r\n  * **bytebuffer** &nbsp; Backing buffer: ArrayBuffer, Accessor: Uint8Array\r\n  * **bytebuffer-dataview** &nbsp; Backing buffer: ArrayBuffer, Accessor: DataView\r\n  * **bytebuffer-node** &nbsp; Backing buffer / Accessor: node Buffer\r\n* 8, 16, 32 and 64 bit (through [long.js](https://github.com/dcodeIO/long.js)) signed and unsigned integers\r\n* 32 and 64 bit floats\r\n* Varints as used in protobuf (32 and 64 bit, zig-zag)\r\n* [Base64](https://github.com/dcodeIO/lxiv), [utf8](https://github.com/dcodeIO/utfx), binary, hex and debug encodings\r\n* Handy string and debugging utilities\r\n* Big and little endianness\r\n* Relative and absolute zero-copy operations wherever possible\r\n* Transparent resizing when using unknown-length data\r\n* Chaining of all operations that do not return a specific value\r\n* Slicing, appending, prepending, reversing, flip, mark, reset, etc.\r\n\r\nUsage\r\n-----\r\nThe library is compatible with CommonJS and AMD loaders and is exposed globally as `dcodeIO.ByteBuffer` if neither is\r\navailable.\r\n\r\n```javascript\r\nvar ByteBuffer = require(\"bytebuffer\");\r\n\r\nvar bb = new ByteBuffer()\r\n            .writeIString(\"Hello world!\")\r\n            .flip();\r\nconsole.log(bb.readIString()+\" from bytebuffer.js\");\r\n```\r\n\r\nIn the browser, 64 bit integer support is optional and present only if [Long.js](https://github.com/dcodeIO/long.js) has\r\nbeen loaded prior to bytebuffer.js.\r\n\r\nAPI\r\n---\r\n* [View the API documentation](https://github.com/dcodeIO/bytebuffer.js/wiki/API)\r\n* [Check the wiki](https://github.com/dcodeIO/bytebuffer.js/wiki)\r\n\r\nDownloads\r\n---------\r\n* [Distributions](https://github.com/dcodeIO/bytebuffer.js/tree/master/dist)\r\n* [ZIP-Archive](https://github.com/dcodeIO/bytebuffer.js/archive/master.zip)\r\n* [Tarball](https://github.com/dcodeIO/bytebuffer.js/tarball/master)\r\n\r\nSupport for IE<10, FF<15, Chrome<9 etc.\r\n---------------------------------------\r\n* Use bytebuffer-dataview with a polyfill ([see](https://github.com/dcodeIO/bytebuffer.js/tree/master/dist))\r\n\r\nContributors\r\n------------\r\n[Dretch](https://github.com/Dretch) (IE8 compatibility)\r\n\r\nLicense\r\n-------\r\n**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) - Logo derived from [W3C HTML5 Logos](http://www.w3.org/html/logo/) (CC A 3.0)\r\n","publish_time":1361971717934,"_cnpm_publish_time":1361971717934,"dist-tags":{"latest":"5.0.1"}}