Home / File/ ReactFlightClientStreamConfigNode.js — react Source File

ReactFlightClientStreamConfigNode.js — react Source File

Architecture documentation for ReactFlightClientStreamConfigNode.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  530643d3_a50e_ed3d_7b65_8b6f5c6739fe["ReactFlightClientStreamConfigNode.js"]
  e38503ff_90ab_2fd6_8dbb_f5a5a0bd5a1b["util"]
  530643d3_a50e_ed3d_7b65_8b6f5c6739fe --> e38503ff_90ab_2fd6_8dbb_f5a5a0bd5a1b
  style 530643d3_a50e_ed3d_7b65_8b6f5c6739fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import {TextDecoder} from 'util';

export type StringDecoder = TextDecoder;

export function createStringDecoder(): StringDecoder {
  return new TextDecoder();
}

const decoderOptions = {stream: true};

export function readPartialStringChunk(
  decoder: StringDecoder,
  buffer: Uint8Array,
): string {
  return decoder.decode(buffer, decoderOptions);
}

export function readFinalStringChunk(
  decoder: StringDecoder,
  buffer: Uint8Array,
): string {
  return decoder.decode(buffer);
}

Domain

Subdomains

Dependencies

  • util

Frequently Asked Questions

What does ReactFlightClientStreamConfigNode.js do?
ReactFlightClientStreamConfigNode.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactFlightClientStreamConfigNode.js?
ReactFlightClientStreamConfigNode.js defines 3 function(s): createStringDecoder, readFinalStringChunk, readPartialStringChunk.
What does ReactFlightClientStreamConfigNode.js depend on?
ReactFlightClientStreamConfigNode.js imports 1 module(s): util.
Where is ReactFlightClientStreamConfigNode.js in the architecture?
ReactFlightClientStreamConfigNode.js is located at packages/react-client/src/ReactFlightClientStreamConfigNode.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-client/src).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free