MCPcopy Index your code
hub / github.com/JavaCS3/xterm-player / snapshot

Method snapshot

src/Frame.ts:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 return tmp.join('')
76 }
77 snapshot(): string {
78 if (this._snapshotCache !== null) {
79 return this._snapshotCache
80 }
81 const tmp: string[] = new Array<string>(this._events.len())
82 for (let i = 0; i < this._events.len(); i++) {
83 tmp[i] = this._events.get(i).data
84 }
85 const ret = (this.prev ? this._snapshotFn(this.prev.snapshot() + tmp.join('')) : tmp.join(''))
86 return this._snapshotCache = ret
87 }
88}
89
90const DEFAULT_FRAME_EVENTS_STEP = 30

Callers

nothing calls this directly

Calls 3

getMethod · 0.80
lenMethod · 0.65
snapshotMethod · 0.65

Tested by

no test coverage detected