MCPcopy Create free account
hub / github.com/angular/dev-infra / _write

Method _write

github-actions/saucelabs/set-saucelabs-env.js:17835–17840  ·  view source on GitHub ↗

* @param {Buffer} chunk * @param {() => void} callback

(chunk, _, callback)

Source from the content-addressed store, hash-verified

17833 callback(err);
17834 return;
17835 }
17836 __privateGet(this, _inflate)[kBuffer] = [];
17837 __privateGet(this, _inflate)[kLength] = 0;
17838 __privateGet(this, _inflate).on("data", (data) => {
17839 __privateGet(this, _inflate)[kLength] += data.length;
17840 if (__privateGet(this, _maxPayloadSize) > 0 && __privateGet(this, _inflate)[kLength] > __privateGet(this, _maxPayloadSize)) {
17841 callback(new MessageSizeExceededError());
17842 __privateGet(this, _inflate).removeAllListeners();
17843 __privateGet(this, _inflate).destroy();

Callers

nothing calls this directly

Calls 4

__privateGetFunction · 0.70
__privateSetFunction · 0.70
pushMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected