Jonas Jenwald
c56f25409d
Re-factor the arraysToBytes
helper function (PR 16032 follow-up)
...
Currently this helper function only has two call-sites, and both of them only pass in `ArrayBuffer` data. Given how it's implemented there's a couple of code-paths that are completely unused (e.g. the "string" one), and in particular the intended fast-paths don't actually work.
This patch re-factors and simplifies the helper function, and it'll no longer accept anything except `ArrayBuffer` data (hence why it's also re-named).
Note that at the time when `arraysToBytes` was added we still supported browsers without TypedArray functionality, and we'd then simulate them using regular Arrays.
2023-02-10 10:26:35 +01:00
..
2022-09-21 17:20:23 +02:00
2021-03-13 16:12:53 +01:00
2023-02-09 18:50:57 +01:00
2020-10-03 20:15:29 +02:00
2021-07-04 15:23:56 +02:00
2021-07-04 15:23:56 +02:00
2022-04-29 14:46:30 +02:00
2021-11-03 20:31:57 +01:00
2021-07-28 19:10:42 +02:00
2022-11-03 12:51:48 +01:00
2022-02-21 12:44:56 +01:00
2021-12-07 13:57:25 +01:00
2022-10-13 10:02:25 +02:00
2023-01-07 14:53:13 +01:00
2021-01-09 20:37:51 +01:00
2023-02-10 10:26:35 +01:00
2022-01-25 09:59:34 +01:00
2022-10-08 17:10:05 +02:00
2022-02-21 12:45:00 +01:00
2023-01-01 17:06:47 +01:00
2022-10-07 14:43:31 +02:00
2022-04-03 20:38:12 +02:00
2022-04-29 14:46:30 +02:00
2022-10-06 14:43:24 +02:00
2023-02-07 22:15:27 +01:00
2023-01-01 17:53:12 +01:00
2021-01-09 20:37:51 +01:00
2023-02-09 17:13:57 +01:00
2022-02-21 12:44:56 +01:00
2021-05-19 11:36:03 +02:00
2022-06-09 21:21:19 +02:00
2023-01-01 17:06:47 +01:00
2023-01-21 12:21:21 +01:00
2022-10-03 13:08:38 +02:00
2022-01-18 22:06:23 +01:00
2022-09-27 16:31:51 +02:00
2021-07-28 19:10:42 +02:00
2022-03-18 14:27:34 +01:00
2022-10-07 00:10:46 +02:00
2022-02-21 12:44:56 +01:00
2023-01-19 17:14:17 +01:00
2022-02-21 12:44:56 +01:00
2022-10-03 13:08:38 +02:00
2021-04-28 13:44:47 +02:00
2022-02-26 13:05:23 +01:00
2021-07-28 19:10:42 +02:00
2021-04-28 10:16:51 +02:00
2023-02-04 12:43:55 +01:00
2022-01-30 15:53:31 +01:00
2021-07-28 19:10:42 +02:00
2022-04-27 11:19:55 +02:00
2022-10-03 13:08:38 +02:00
2022-10-03 13:08:38 +02:00
2022-07-30 16:53:32 +02:00
2023-01-01 17:06:47 +01:00
2023-01-01 17:53:12 +01:00
2022-10-29 14:42:17 +02:00
2022-02-21 12:44:56 +01:00
2022-07-12 10:52:37 +02:00
2021-07-24 13:05:46 +02:00
2021-04-28 10:16:51 +02:00
2021-07-28 19:10:42 +02:00
2023-01-30 12:13:21 +01:00
2022-04-29 14:46:30 +02:00
2022-04-09 09:43:18 +09:00
2021-05-02 21:00:29 +02:00
2022-10-03 13:08:38 +02:00
2023-01-07 16:25:24 +01:00
2022-01-25 09:59:34 +01:00
2021-04-24 13:00:19 +02:00
2023-02-10 10:26:35 +01:00
2023-02-07 19:26:46 +01:00
2022-06-09 21:21:19 +02:00
2022-10-03 13:08:38 +02:00
2023-01-06 13:09:37 +01:00