(frameId: bigint)
| 130 | } |
| 131 | |
| 132 | function getFrameChanges(frameId: bigint): readonly StateChange[] { |
| 133 | const result: StateChange[] = []; |
| 134 | for (let i = head; i < changes.length; i++) { |
| 135 | const c = changes[i]; |
| 136 | if (c !== undefined && c.frameId === frameId) result.push(c); |
| 137 | } |
| 138 | return result; |
| 139 | } |
| 140 | |
| 141 | function clear(): void { |
| 142 | changes.length = 0; |