node/test/cctest
James M Snell d335487e3f src, deps: add nbytes library
Projects that seek to implement Node.js compatible APIs end up
needed to reproduce various bits of functionality internally in
order to faithfully replicate the Node.js behaviors. This is
particularly true for things like byte manipulation, base64 and
hex encoding, and other low-level operations. This change
proposes moving much of this low-level byte manipulation code
out of nodejs/src and into a new `nbytes` library. Initially this
new library will exist in the `deps` directory but the intent is
to spin out a new separate repository to be its home in the future.
Doing so will allow other projects to use the nbytes library with
exactly the same implementation as Node.js.

This commit moves only the byte swapping and legacy base64 handling
code. Additional commits will move additional byte manipulation
logic into the library.

PR-URL: https://github.com/nodejs/node/pull/53507
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2024-06-21 07:38:37 -07:00
..
node_test_fixture.cc src: use effective cppgc wrapper id to deduce non-cppgc id 2023-07-21 16:44:23 +02:00
node_test_fixture.h test: make IsolateData per-isolate in cctest 2023-06-25 05:41:19 +00:00
test_aliased_buffer.cc src: move AliasedBuffer implementation to -inl.h 2023-03-01 17:45:02 +01:00
test_base64.cc src, deps: add nbytes library 2024-06-21 07:38:37 -07:00
test_base_object_ptr.cc
test_cppgc.cc src: use effective cppgc wrapper id to deduce non-cppgc id 2023-07-21 16:44:23 +02:00
test_crypto_clienthello.cc test: use CHECK instead of EXPECT where necessary 2022-10-14 14:10:48 -04:00
test_dataqueue.cc src, lib: fixup lint and format issues for DataQueue/Blob 2023-02-19 16:26:59 -08:00
test_environment.cc src: remove calls to recently deprecated V8 APIs 2024-05-19 09:12:40 +00:00
test_inspector_socket_server.cc
test_inspector_socket.cc src: prefer data accessor of string and vector 2023-05-03 14:09:23 +00:00
test_json_utils.cc
test_linked_binding.cc node-api: type tag external values without v8::Private 2023-12-22 09:34:51 +00:00
test_node_api.cc test: make IsolateData per-isolate in cctest 2023-06-25 05:41:19 +00:00
test_node_crypto_env.cc test: fix compiler warning in NodeCryptoEnv 2023-08-24 16:25:09 +00:00
test_node_crypto.cc
test_node_postmortem_metadata.cc
test_node_task_runner.cc src: fix positional args in task runner 2024-05-08 11:37:07 +00:00
test_path.cc fs: move ToNamespacedPath to c++ 2024-06-20 02:11:10 +00:00
test_per_process.cc src: make BuiltinLoader threadsafe and non-global 2023-01-18 22:03:00 +00:00
test_platform.cc
test_quic_cid.cc quic: rework TLSContext, additional cleanups 2024-04-20 18:10:17 -07:00
test_quic_error.cc quic: rework TLSContext, additional cleanups 2024-04-20 18:10:17 -07:00
test_quic_tokens.cc quic: rework TLSContext, additional cleanups 2024-04-20 18:10:17 -07:00
test_report.cc test: make IsolateData per-isolate in cctest 2023-06-25 05:41:19 +00:00
test_sockaddr.cc
test_traced_value.cc
test_util.cc fs: validate fd synchronously on c++ 2023-12-18 22:06:45 +00:00