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

Method shift

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

Source from the content-addressed store, hash-verified

8317 var kMask = kSize - 1;
8318 var FixedCircularBuffer = class {
8319 constructor() {
8320 this.bottom = 0;
8321 this.top = 0;
8322 this.list = new Array(kSize);
8323 this.next = null;
8324 }
8325 isEmpty() {
8326 return this.top === this.bottom;
8327 }
8328 isFull() {
8329 return (this.top + 1 & kMask) === this.bottom;

Callers 6

""Function · 0.45
shiftMethod · 0.45
constructorMethod · 0.45
[kDestroy]Method · 0.45
consumeMethod · 0.45
consumeFragmentsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected