MCPcopy Create free account
hub / github.com/Effect-TS/effect / _write

Method _write

packages/platform/node/src/NodeMultipartParser.ts:130–143  ·  view source on GitHub ↗
(
    chunk: any,
    encoding: BufferEncoding,
    callback: (error?: Error | null | undefined) => void
  )

Source from the content-addressed store, hash-verified

128 override _read(_size: number) {}
129
130 override _write(
131 chunk: any,
132 encoding: BufferEncoding,
133 callback: (error?: Error | null | undefined) => void
134 ): void {
135 this._parser.write(
136 chunk instanceof Uint8Array ? chunk : Buffer.from(chunk, encoding)
137 )
138 if (this._canWrite) {
139 callback()
140 } else {
141 this._writeCallback = callback
142 }
143 }
144
145 override _final(callback: (error?: Error | null | undefined) => void): void {
146 this._parser.end()

Callers

nothing calls this directly

Calls 2

writeMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected