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

Function consumeEnd

github-actions/browserstack/set-browserstack-env.js:9889–9907  ·  view source on GitHub ↗
(consume2)

Source from the content-addressed store, hash-verified

9887 const start = state.bufferIndex;
9888 const end = state.buffer.length;
9889 for (let n = start; n < end; n++) {
9890 consumePush(consume2, state.buffer[n]);
9891 }
9892 } else {
9893 for (const chunk of state.buffer) {
9894 consumePush(consume2, chunk);
9895 }
9896 }
9897 if (state.endEmitted) {
9898 consumeEnd(this[kConsume]);
9899 } else {
9900 consume2.stream.on("end", function() {
9901 consumeEnd(this[kConsume]);
9902 });
9903 }
9904 consume2.stream.resume();
9905 while (consume2.stream.read() != null) {
9906 }
9907 }
9908 function chunksDecode(chunks, length) {
9909 if (chunks.length === 0 || length === 0) {
9910 return "";

Callers 1

consumeStartFunction · 0.70

Calls 4

chunksDecodeFunction · 0.70
chunksConcatFunction · 0.70
consumeFinishFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected