MCPcopy Index your code
hub / github.com/nodejs/node / setEncoding

Method setEncoding

deps/undici/undici.js:17292–17297  ·  view source on GitHub ↗

* @param {BufferEncoding} encoding * @returns {this}

(encoding)

Source from the content-addressed store, hash-verified

17290 * @returns {this}
17291 */
17292 setEncoding(encoding) {
17293 if (Buffer.isEncoding(encoding)) {
17294 this._readableState.encoding = encoding;
17295 }
17296 return this;
17297 }
17298 };
17299 function isLocked(bodyReadable) {
17300 return bodyReadable[kBody]?.locked === true || bodyReadable[kConsume] !== null;

Callers 15

license2rtf.mjsFile · 0.45
execFileFunction · 0.45
launchChildProcessFunction · 0.45
readStdinFunction · 0.45
streamWriteFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runClientFunction · 0.45

Calls

no outgoing calls

Tested by 6

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36