/*** Copyright (c) Facebook, Inc. and its affiliates.** This source code is licensed under the MIT license found in the* LICENSE file in the root directory of this source tree.** @flow*/export type Destination = ReadableStreamController;export function scheduleWork(callback: () => void) {callback();}export function flushBuffered(destination: Destination) {// WHATWG Streams do not yet have a way to flush the underlying// transform streams. https://github.com/whatwg/streams/issues/960}export function beginWriting(destination: Destination) {}export function writeChunk(destination: Destination, buffer: Uint8Array) {destination.enqueue(buffer);}export function completeWriting(destination: Destination) {}export function close(destination: Destination) {destination.close();}const textEncoder = new TextEncoder();export function convertStringToBuffer(content: string): Uint8Array {return textEncoder.encode(content);}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。