8000 Even more README · protobufjs/bytebuffer.js@cc9d7e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc9d7e4

Browse files
committed
Even more README
1 parent 7e1e007 commit cc9d7e4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dist/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ ByteBuffer uses either ArrayBuffers in the browser or Buffers under node.js.
55

66
### Browser: [ArrayBuffer](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)-backed
77

8-
##### Accessed through TypedArrays
8+
##### Accessed through Typed Arrays
9+
10+
Using Typed Arrays here is pretty much ideal, but it [requires a somewhat recent browser](http://caniuse.com/#feat=typedarrays).
911

1012
* **[ByteBufferAB.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.js)**
1113
uses an ArrayBuffer as its backing buffer, accessed through an [Uint8Array](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array).
@@ -19,7 +21,10 @@ ByteBuffer uses either ArrayBuffers in the browser or Buffers under node.js.
1921
* **[ByteBufferAB.min.map](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.map)**
2022
is the source map generated by Closure Compiler.
2123

22-
##### Accessed through DataViews ([polyfill](https://github.com/inexorabletash/polyfill/blob/master/typedarray.js) compatible)
24+
##### Accessed through a DataView ([polyfill](https://github.com/inexorabletash/polyfill/blob/master/typedarray.js) compatible)
25+
26+
Using DataViews is [generally slower](https://github.com/dcodeIO/ByteBuffer.js/issues/16) but works well with common polyfills for
27+
older browsers, as it does not utilize array access operators on Typed Arrays.
2328

2429
* **[ByteBufferAB_DataView.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB_DataView.js)**
2530
uses an ArrayBuffer as its backing buffer, accessed through a [DataView](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/DataView).

0 commit comments

Comments
 (0)
0