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

Function arrayBufferToWords32

packages/service-worker/worker/src/sha1.ts:125–133  ·  view source on GitHub ↗
(buffer: ArrayBuffer, endian: Endian)

Source from the content-addressed store, hash-verified

123}
124
125function arrayBufferToWords32(buffer: ArrayBuffer, endian: Endian): number[] {
126 const size = (buffer.byteLength + 3) >>> 2;
127 const words32: number[] = [];
128 const view = new Uint8Array(buffer);
129 for (let i = 0; i < size; i++) {
130 words32[i] = wordAt(view, i * 4, endian);
131 }
132 return words32;
133}
134
135function byteAt(str: string | Uint8Array, index: number): number {
136 if (typeof str === 'string') {

Callers 1

sha1BinaryFunction · 0.70

Calls 1

wordAtFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…