pdf.js/src/shared
Jonas Jenwald 96d338e437 Reduce usage of the arrayByteLength helper function
We're using this helper function when reading data from the [`PDFWorkerStreamReader.read`](a49d1d1615/src/core/worker_stream.js (L90-L98)) and [`PDFWorkerStreamRangeReader.read`](a49d1d1615/src/core/worker_stream.js (L122-L128)) methods, and as can be seen they always return `ArrayBuffer` data. Hence we can simply get the `byteLength` directly, and don't need to use the helper function.

Note that at the time when `arrayByteLength` was added we still supported browsers without TypedArray functionality, and we'd then simulate them using regular Arrays.
2023-02-09 15:50:38 +01:00
..
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
cffStandardStrings.js Fix errors reported by the comma-spacing ESLint rule 2016-12-12 20:35:53 +01:00
compatibility.js Polyfill Path2D in Node.js environments 2023-01-28 18:28:22 +01:00
fonts_utils.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00
image_utils.js Improve performance of applyMaskImageData 2022-04-09 22:19:02 +02:00
is_node.js Use Path2D, if available, when rendering Type3-fonts (bug 810214) 2022-05-01 13:56:35 +02:00
message_handler.js Simplify the wrapReason helper function 2022-02-25 18:31:12 +01:00
murmurhash3.js Remove a couple of unnecessary temporary variables in MurmurHash3_64.hexdigest 2022-11-10 18:27:26 +01:00
scripting_utils.js Fix a bug in the ColorConverters.CMYK_HTML method (PR 12631 follow-up) 2022-06-09 10:03:36 +02:00
util.js Reduce usage of the arrayByteLength helper function 2023-02-09 15:50:38 +01:00