node/lib/internal
Ruben Bridgewater e8bb1f35df
buffer: refactor all read/write functions
There are a lot of changes in this commit:

1) Remove the `noAssert` argument from all read and write functions.
2) Improve the performance of all read floating point functions
   significantly. This is done by switching to TypedArrays as the
   write floating point write functions.
3) No implicit type coercion for offset and byteLength anymore.
4) Adds a lot of tests.
5) Moves the read and write functions to the internal buffer file
   to split the files in smaller chunks.
6) Reworked a lot of existing tests.
7) Improve the performane of all all read write functions by using
   a faster input validation and by improving function logic.
8) Significantly improved the performance of all read int functions.
   This is done by using a implementation without a loop.
9) Improved error handling.
10) Rename test file to use the correct subsystem.

PR-URL: https://github.com/nodejs/node/pull/18395
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2018-03-02 19:29:46 +00:00
..
cluster cluster: fix inspector port assignment 2018-02-22 11:06:21 +01:00
crypto lib: switch to Number.isNaN 2018-02-16 18:09:56 +01:00
http2 http2: use original error for cancelling pending streams 2018-03-02 11:01:27 +00:00
loader loader: fix --inspect-brk 2018-03-01 09:18:30 -06:00
process async_hooks: clean up usage in internal code 2018-02-16 14:23:14 -05:00
repl repl: support top-level await 2017-11-16 15:42:46 -08:00
streams net: use _final instead of on('finish') 2018-02-21 20:42:18 +01:00
test lint: move eslint to new plugin system 2018-02-20 13:13:22 -06:00
util repl: show lexically scoped vars in tab completion 2017-12-21 14:47:29 +01:00
vm loader: fix up #18394 2018-02-04 13:49:06 -08:00
async_hooks.js lib: change hook -> hooks in code comment 2018-03-02 08:54:32 +01:00
bootstrap_node.js async_hooks: clean up usage in internal code 2018-02-16 14:23:14 -05:00
buffer.js buffer: refactor all read/write functions 2018-03-02 19:29:46 +00:00
child_process.js child_process: fix stdio sockets creation 2018-02-16 19:11:03 +01:00
constants.js module: replace "magic" numbers by constants 2018-02-22 15:15:43 +00:00
encoding.js lib: extract validation functions 2018-02-01 11:55:13 +01:00
errors.js errors: simplify sysError 2018-02-22 13:37:00 +00:00
freelist.js lib: update indentation of ternaries 2017-07-17 22:09:46 -07:00
fs.js fs: support as and as+ flags in stringToFlags() 2018-02-22 12:12:51 +01:00
http.js http: convert utcDate to use setTimeout 2017-12-29 00:08:54 +01:00
inspector_async_hook.js inspector: no async tracking for promises 2017-11-21 13:57:05 +01:00
linkedlist.js linkedlist: correct grammar in comments 2017-07-31 08:03:19 +08:00
module.js module: replace "magic" numbers by constants 2018-02-22 15:15:43 +00:00
net.js lib,src: port isIPv4() to js 2018-01-29 14:45:06 +01:00
os.js os: add CIDR support 2017-08-14 15:43:10 -04:00
process.js lib: allow process kill by signal number 2018-02-17 17:09:25 +01:00
querystring.js lib: use Object.create(null) directly 2017-03-24 15:25:49 -07:00
readline.js src: replace var for let / const. 2018-02-10 15:58:45 +01:00
readme.md doc: limit lines to 80 cols in internal README 2017-04-13 15:30:10 -07:00
repl.js lib: switch to Number.isNaN 2018-02-16 18:09:56 +01:00
safe_globals.js module: Allow runMain to be ESM 2017-09-07 15:18:32 -05:00
socket_list.js child_process: fix memory leak in .fork() 2017-09-30 22:18:29 -07:00
timers.js timers: add helper fn for async init 2018-02-19 07:02:21 -05:00
tls.js tls: deprecate parseCertString & move to internal 2017-09-13 16:54:35 -03:00
trace_events_async_hooks.js lib: fix typo in trace_events_async_hooks.js 2018-01-21 17:39:44 +02:00
url.js url: simplify constructor URLSearchParams. Remove needless check null 2018-02-11 09:32:48 -06:00
util.js lib: improve normalize encoding performance 2018-03-02 02:09:25 +00:00
v8_prof_polyfill.js tools, test: fix prof polyfill readline 2018-02-17 10:06:53 -02:00
v8_prof_processor.js lib: replace eval with vm.runInThisContext 2018-02-17 14:35:34 +01:00
v8.js lib: remove use of Debug.MakeMirror() 2017-11-24 00:13:44 +01:00
wrap_js_stream.js src: refactor WriteWrap and ShutdownWraps 2018-02-14 10:00:29 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These are subject to change at any time. Reliance on these modules outside of core is not supported in any way.