(path: string)
| 173 | } |
| 174 | |
| 175 | replaceData(path: string) { |
| 176 | this.path = path; |
| 177 | this.buffer = fs.readFileSync(path); |
| 178 | } |
| 179 | |
| 180 | async getBytes(offset: number, length: number): Promise<RangeResponse> { |
| 181 | const slice = new Uint8Array(this.buffer.slice(offset, offset + length)) |
nothing calls this directly
no outgoing calls
no test coverage detected