MCPcopy Index your code
hub / github.com/angular/angular / wordAt

Function wordAt

packages/compiler/src/i18n/digest.ts:372–384  ·  view source on GitHub ↗
(bytes: Byte[], index: number, endian: Endian)

Source from the content-addressed store, hash-verified

370}
371
372function wordAt(bytes: Byte[], index: number, endian: Endian): number {
373 let word = 0;
374 if (endian === Endian.Big) {
375 for (let i = 0; i < 4; i++) {
376 word += byteAt(bytes, index + i) << (24 - 8 * i);
377 }
378 } else {
379 for (let i = 0; i < 4; i++) {
380 word += byteAt(bytes, index + i) << (8 * i);
381 }
382 }
383 return word;
384}

Callers 1

bytesToWords32Function · 0.70

Calls 1

byteAtFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…