(str: string)
| 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) { |