mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-03 14:51:18 +01:00
Replace buffer.slice() with buffer.subarray()
This commit is contained in:
@@ -32,7 +32,7 @@ export class FileStream extends InputStream {
|
||||
this.#position
|
||||
);
|
||||
this.#position += bytesRead;
|
||||
return this.#buffer.slice(0, bytesRead);
|
||||
return this.#buffer.subarray(0, bytesRead);
|
||||
}
|
||||
|
||||
async skip(amount: number): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user