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

Method writeFragments

github-actions/browserstack/set-browserstack-env.js:18034–18042  ·  view source on GitHub ↗
(fragment)

Source from the content-addressed store, hash-verified

18032 return callback();
18033 }
18034 const buffer = this.consume(8);
18035 const upper = buffer.readUInt32BE(0);
18036 const lower = buffer.readUInt32BE(4);
18037 if (upper !== 0 || lower > __pow(2, 31) - 1) {
18038 failWebsocketConnection(this.ws, "Received payload length > 2^31 bytes.");
18039 return;
18040 }
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 }

Callers 1

runMethod · 0.45

Calls 4

__privateGetFunction · 0.70
__privateSetFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected