0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Jackson Tian 293fd04535 buffer: make byteLength work with ArrayBuffer & DataView
Convert anything to string, but Buffer, TypedArray and ArrayBuffer

```
var uint8 = new Uint8Array([0xf0, 0x9f, 0x90]);
Buffer.byteLength(uint8); // should be 3, but returns 11
Buffer.byteLength(uint8.buffer); // should be 3, but return 20
```

PR-URL: https://github.com/nodejs/node/pull/5255
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-03-27 09:19:39 -07:00
..
api buffer: make byteLength work with ArrayBuffer & DataView 2016-03-27 09:19:39 -07:00
api_assets doc: update link green to match homepage 2016-03-03 19:41:47 +01:00
ctc-meetings doc: add CTC meeting minutes 2016-02-10 2016-03-21 15:54:35 -07:00
guides doc: add "building node with ninja" guide 2016-02-23 12:23:45 -05:00
topics doc: topic blocking vs non-blocking 2016-03-19 15:19:15 +02:00
tsc-meetings doc: add TSC meeting minutes 2015-10-21 2015-10-26 09:36:42 -07:00
full-white-stripe.jpg build: update Node.js logo on Win installer 2016-03-06 20:22:36 -06:00
node.1 process: add 'warning' event and process.emitWarning() 2016-03-24 13:19:11 -07:00
onboarding-extras.md doc: add onboarding resources 2016-03-14 11:35:04 -04:00
onboarding.md doc: add onboarding resources 2016-03-14 11:35:04 -04:00
osx_installer_logo.png build: update Node.js logo on OSX installer 2016-02-27 16:49:56 +11:00
releases.md doc: add instructions to only sign a release 2016-03-24 21:25:23 -07:00
template.html doc: improve scrolling, various CSS tweaks 2016-02-14 05:46:18 +01:00
thin-white-stripe.jpg build: update Node.js logo on Win installer 2016-03-06 20:22:36 -06:00