Houjie
2025-07-24 1bc8f80935add7215fa98de1ab8b375b222a2046
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
declare type TextDecoderOptions = {
    fatal?: boolean;
    ignoreBOM?: boolean;
};
declare type DecodeOptions = {
    stream?: boolean;
};
/**
 * @constructor
 * @param {string=} label The label of the encoding;
 *     defaults to 'utf-8'.
 * @param {Object=} options
 */
export declare class TextDecoder {
    private _encoding;
    private _decoder;
    private _ignoreBOM;
    private _BOMseen;
    private _error_mode;
    private _do_not_flush;
    constructor(label?: string, options?: TextDecoderOptions);
    get encoding(): string;
    get fatal(): boolean;
    get ignoreBOM(): boolean;
    /**
     * @param {BufferSource=} input The buffer of bytes to decode.
     * @param {Object=} options
     * @return {string} The decoded string.
     */
    decode(input?: ArrayBuffer | ArrayLike<number> | Uint8Array, options?: DecodeOptions): string;
    /**
     * @param {!Array.<number>} stream
     * @return {string}
     * @this {TextDecoder}
     */
    private serializeStream;
}
export {};