mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
7f36221101
The native UTF-8 encoder (`TextEncoder`) provides its output as a `Uint8Array` which is a specialized `TypedArray` for storing byte values. To remove the need to copy and transform this data multiple times, a `DataView` is used to allow for low-level access to the data in a variety of bit-widths and endianness. The `DataView` class is natively available and supported by all browsers and Node.js versions support by the framework (https://caniuse.com/mdn-javascript_builtins_dataview). PR Close #48256