1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 10:51:56 +00:00
musix-oss/node_modules/bytebuffer/dist/README.md
2019-10-10 16:43:04 +03:00

2.7 KiB

Distributions

ByteBuffer.js uses either ArrayBuffers in the browser or Buffers under node.js.

Browser: ArrayBuffer-backed

Accessed through Typed Arrays

Using Typed Arrays here is pretty much ideal, but it requires a somewhat recent browser.

Accessed through a DataView (polyfill compatible)

Using DataViews is generally slower but works well with common polyfills for older browsers (avoids array access operators on Typed Arrays).

node.js: Buffer-backed

Also available as bytebuffer on npm and bower.