MCPcopy
hub / github.com/angular/angular / bytesToWords32

Function bytesToWords32

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

Source from the content-addressed store, hash-verified

355}
356
357function bytesToWords32(bytes: Byte[], endian: Endian): number[] {
358 const size = (bytes.length + 3) >>> 2;
359 const words32 = [];
360
361 for (let i = 0; i < size; i++) {
362 words32[i] = wordAt(bytes, i * 4, endian);
363 }
364
365 return words32;
366}
367
368function byteAt(bytes: Byte[], index: number): Byte {
369 return index >= bytes.length ? 0 : bytes[index];

Callers 1

sha1Function · 0.85

Calls 1

wordAtFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…