MCPcopy Index your code
hub / github.com/react/react / serializeDebugTypedArray

Function serializeDebugTypedArray

packages/react-server/src/ReactFlightServer.js:3066–3075  ·  view source on GitHub ↗
(
  request: Request,
  tag: string,
  typedArray: $ArrayBufferView,
)

Source from the content-addressed store, hash-verified

3064}
3065
3066function serializeDebugTypedArray(
3067 request: Request,
3068 tag: string,
3069 typedArray: $ArrayBufferView,
3070): string {
3071 request.pendingDebugChunks++;
3072 const bufferId = request.nextChunkId++;
3073 emitTypedArrayChunk(request, bufferId, tag, typedArray, true);
3074 return serializeByValueID(bufferId);
3075}
3076
3077function serializeDebugBlob(request: Request, blob: Blob): string {
3078 const model: Array<string | Uint8Array> = [blob.type];

Callers 1

renderDebugModelFunction · 0.85

Calls 2

emitTypedArrayChunkFunction · 0.85
serializeByValueIDFunction · 0.70

Tested by

no test coverage detected