MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / constructor

Method constructor

panel/src/app/service/visual_data.ts:10–14  ·  view source on GitHub ↗
(public readonly maxSize: number, defaultValue: T)

Source from the content-addressed store, hash-verified

8 private readonly arr = new Array<T>();
9
10 constructor(public readonly maxSize: number, defaultValue: T) {
11 for (let index = 0; index < maxSize; index++) {
12 this.arr.push(defaultValue);
13 }
14 }
15
16 push(data: T) {
17 if (this.arr.length < this.maxSize) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected