MCPcopy Create free account
hub / github.com/LibPDF-js/core / bytesToInt

Function bytesToInt

src/fontbox/cmap/parser.ts:687–695  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

685}
686
687function bytesToInt(bytes: Uint8Array): number {
688 let value = 0;
689
690 for (let i = 0; i < bytes.length; i++) {
691 value = (value << 8) | bytes[i];
692 }
693
694 return value;
695}
696
697function arraysEqual(a: Uint8Array, b: Uint8Array): boolean {
698 if (a.length !== b.length) {

Callers 1

parseBfRangeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected