node/test/internet
James M Snell 85ab4a5f12 buffer: add .from(), .alloc() and .allocUnsafe()
Several changes:

* Soft-Deprecate Buffer() constructors
* Add `Buffer.from()`, `Buffer.alloc()`, and `Buffer.allocUnsafe()`
* Add `--zero-fill-buffers` command line option
* Add byteOffset and length to `new Buffer(arrayBuffer)` constructor
* buffer.fill('') previously had no effect, now zero-fills
* Update the docs

PR-URL: https://github.com/nodejs/node/pull/4682
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2016-03-16 08:34:02 -07:00
..
test-dgram-broadcast-multi-process.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
test-dgram-multicast-multi-process.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
test-dgram-send-cb-quelches-error.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
test-dns-ipv4.js test: fix style issues after eslint update 2016-01-13 23:16:17 +01:00
test-dns-ipv6.js test: fix style issues after eslint update 2016-01-13 23:16:17 +01:00
test-dns-txt-sigsegv.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
test-dns.js dns: add resolvePtr to query plain DNS PTR records 2016-02-08 17:30:38 +01:00
test-http-dns-fail.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
test-http-https-default-ports.js test: changing process.exit to return while skipping tests 2015-07-20 15:50:42 +05:30
test-net-connect-timeout.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
test-net-connect-unref.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
test-tls-connnect-cnnic.js test: changing process.exit to return while skipping tests 2015-07-20 15:50:42 +05:30
test-tls-connnect-melissadata.js test: changing process.exit to return while skipping tests 2015-07-20 15:50:42 +05:30
test-tls-reuse-host-from-socket.js test: changing process.exit to return while skipping tests 2015-07-20 15:50:42 +05:30
testcfg.py test: refactor to use common testcfg 2014-01-20 09:00:13 -08:00