Displaying 1 to 15 from 15 results

buffer - The buffer module from node.js, for the browser.

  •    Javascript

With browserify, simply require('buffer') or use the Buffer global and you will get this module.The goal is to provide an API that is 100% identical to node's Buffer API. Read the official docs for the full list of properties, instance methods, and class methods that are supported.

msgpack-lite - Fast Pure JavaScript MessagePack Encoder and Decoder / msgpack.org[JavaScript]

  •    Javascript

A CLI tool bin/msgpack converts data stream from JSON to MessagePack and vice versa. Browser version msgpack.min.js is also available. 50KB minified, 14KB gziped.

bytebuffer

  •    Javascript

A fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js, generated from a single source tree through MetaScript. The library is compatible with CommonJS and AMD loaders and is exposed globally as dcodeIO.ByteBuffer if neither is available.

is-buffer - Determine if an object is a Buffer

  •    Javascript

This module lets you check if an object is a Buffer without using Buffer.isBuffer (which includes the whole buffer module in browserify).MIT. Copyright (C) Feross Aboukhadijeh.




typedarray-to-buffer - Convert a typed array to a Buffer without a copy.

  •    Javascript

Say you're using the 'buffer' module on npm, or browserify and you're working with lots of binary data.But, alas, every time you do Buffer.from(uint8array) the entire array gets copied. The Buffer constructor does a copy; this is defined by the node docs and the 'buffer' module matches the node API exactly.

image-juggler - Juggle pixel data between different web containers, like <img>, <canvas>, ImageData, File, ArrayBuffer, Blob, Array, etc

  •    Javascript

The web has some nice image-processing capabilities, but the APIs are wildly inconsistent. Plus, some third party libraries want a canvas, others want an image. And if you need to read an image in, you need to know the intimacies of the File and Blob APIs. Accept an image File via an <input> tag, and append it to the document as an Image.

DataStream.js - DataStream.js is a library for reading data from ArrayBuffers

  •    Javascript

DataStream.js is a library for reading data from ArrayBuffers, see this HTML5Rocks article for documentation. There is a JPEG marker decoder example in jpeg.html, it prints out JPEG marker contents and uses the jpg.js library to decode the JPEG and draw it on a canvas element.


to-arraybuffer - Get an ArrayBuffer from a Buffer as fast as possible

  •    Javascript

Convert from a Buffer to an ArrayBuffer as fast as possible. Note that in some cases the returned ArrayBuffer is backed by the same memory as the original Buffer (but in other cases it is a copy), so modifying the ArrayBuffer is not recommended.

int64-buffer - 64bit Long Integer on Buffer/ArrayBuffer in Pure JavaScript

  •    Javascript

JavaScript's number based on IEEE-754 could only handle 53 bits precision. This module provides two pair of classes: Int64BE/Uint64BE and Int64LE/Uint64LE which could hold 64 bits long integer and loose no bit. Int64BE is the class to host a 64 bit signed long integer int64_t.

gify - JavaScript API for decoding/parsing information from animated GIFs using ArrayBuffers.

  •    Javascript

JavaScript API for decoding/parsing information from animated GIFs using ArrayBuffers. Once I saw vinepeek, I immediately wanted to build a similar site for animated GIFs. The only problem was, there was no way to quickly determine the duration of an animated GIF, which varies in different browsers. Thus, gify was born over a weekend.

base64-arraybuffer - Encode/decode base64 data into ArrayBuffers

  •    Javascript

Copyright (c) 2012 Niklas von Hertzen Licensed under the MIT license.

node-memcpy - Copies data between node Buffers and/or ArrayBuffers up to ~75 times faster than in pure JS

  •    Javascript

Copies data between node Buffers and/or ArrayBuffers up to ~75 times faster than in pure JS. node.js utilizes a non-standard concept of I/O buffers and thus has both its Buffer as well as ArrayBuffer support. While Buffers are nice because they are a lot faster than V8's ArrayBuffers, transferring data between those two types can be ridiculously slow. This is where a node module like memcpy comes into play.

bit-buffer

  •    Javascript

BitBuffer provides two objects, BitView and BitStream. BitView is a wrapper for ArrayBuffers, similar to JavaScript's DataView, but with support for bit-level reads and writes. BitStream is a wrapper for a BitView used to help maintain your current buffer position, as well as to provide higher-level read / write operations such as for ASCII strings. Default constructor, takes in a single argument of an ArrayBuffer. Optional are the byteOffset and byteLength arguments to offset and truncate the view's representation of the buffer.

bin-json - Serialize intermixed JSON and binary data

  •    Javascript

First off, let's get this out of the way: bin-json is not a BSON alternative. It aims to solve a different problem. The sole purpose of bin-json is efficiently adding binary types to json. I built this tool because I needed to attach mime types to binary payloads. Prefixing the payload with a mime header would work, but quickly becomes clunky as you add more information, like streaming metadata or timestamps. My target was the expressiveness of JSON, and the space efficiency of binary.