MCPcopy Index your code
hub / github.com/fb55/htmlparser2 / _write

Method _write

src/WritableStream.ts:27–36  ·  view source on GitHub ↗
(
        chunk: string | Buffer,
        encoding: string,
        callback: () => void,
    )

Source from the content-addressed store, hash-verified

25 }
26
27 override _write(
28 chunk: string | Buffer,
29 encoding: string,
30 callback: () => void,
31 ): void {
32 this._parser.write(
33 isBuffer(chunk, encoding) ? this._decoder.write(chunk) : chunk,
34 );
35 callback();
36 }
37
38 override _final(callback: () => void): void {
39 this._parser.end(this._decoder.end());

Callers

nothing calls this directly

Calls 2

isBufferFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected