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

Method consumeFragments

github-actions/browserstack/set-browserstack-env.js:18043–18053  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18041 __privateGet(this, _info).payloadLength = lower;
18042 __privateSet(this, _state, parserStates.READ_DATA);
18043 if (!__privateMethod(this, _validatePayloadLength, validatePayloadLength_fn).call(this)) {
18044 return;
18045 }
18046 } else if (__privateGet(this, _state) === parserStates.READ_DATA) {
18047 if (__privateGet(this, _byteOffset) < __privateGet(this, _info).payloadLength) {
18048 return callback();
18049 }
18050 const body = this.consume(__privateGet(this, _info).payloadLength);
18051 if (isControlFrame(__privateGet(this, _info).opcode)) {
18052 __privateSet(this, _loop, this.parseControlFrame(body));
18053 __privateSet(this, _state, parserStates.INFO);
18054 } else {
18055 if (!__privateGet(this, _info).compressed) {
18056 if (!this.writeFragments(body)) {

Callers 1

runMethod · 0.45

Calls 3

__privateGetFunction · 0.70
__privateSetFunction · 0.70
shiftMethod · 0.45

Tested by

no test coverage detected