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

Method pushLog

daemon/src/common/string_cache.ts:27–36  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

25 }
26
27 pushLog(str: string): void {
28 const SIZE = 256;
29 if (str.length > SIZE) {
30 for (let i = 0, len = str.length; i < len; i += SIZE) {
31 this.push(str.substring(i, i + SIZE) as T);
32 }
33 } else {
34 this.push(str as T);
35 }
36 }
37
38 push(item: T): void {
39 if (this.size === this.capacity) {

Callers 1

pushOutputMethod · 0.80

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected