MCPcopy Index your code
hub / github.com/facebook/react / binaryToComparableString

Function binaryToComparableString

packages/shared/binaryToComparableString.js:12–19  ·  view source on GitHub ↗
(
  view: $ArrayBufferView,
)

Source from the content-addressed store, hash-verified

10// Turns a TypedArray or ArrayBuffer into a string that can be used for comparison
11// in a Map to see if the bytes are the same.
12export default function binaryToComparableString(
13 view: $ArrayBufferView,
14): string {
15 return String.fromCharCode.apply(
16 String,
17 new Uint8Array(view.buffer, view.byteOffset, view.byteLength),
18 );
19}

Callers 2

taintUniqueValueFunction · 0.85
emitTypedArrayChunkFunction · 0.85

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected