Method
_write
(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
Tested by
no test coverage detected