MCPcopy
hub / github.com/microsoft/playwright / _write

Method _write

packages/utils/nodePlatform.ts:161–164  ·  view source on GitHub ↗
(chunk: Buffer | string, encoding: BufferEncoding, callback: (error?: Error | null) => void)

Source from the content-addressed store, hash-verified

159 }
160
161 override async _write(chunk: Buffer | string, encoding: BufferEncoding, callback: (error?: Error | null) => void) {
162 const error = await this._channel.write({ binary: typeof chunk === 'string' ? Buffer.from(chunk) : chunk }).catch(e => e);
163 callback(error || null);
164 }
165
166 override async _final(callback: (error?: Error | null) => void) {
167 // Stream might be destroyed after the connection was closed.

Callers

nothing calls this directly

Calls 4

catchMethod · 0.80
callbackFunction · 0.70
writeMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected