(chunk: Buffer)
| 48 | } |
| 49 | |
| 50 | append(chunk: Buffer): void { |
| 51 | if (chunk.length === 0) return; |
| 52 | this.chunks.push(chunk); |
| 53 | this.totalBytes += chunk.length; |
| 54 | this.evict(); |
| 55 | } |
| 56 | |
| 57 | since(seq: number): ReplaySlice { |
| 58 | const effectiveSeq = Math.max(seq, this.head); |