mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 15:45:39 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -6,11 +6,11 @@ import { InputStream } from '@signalapp/libsignal-client/dist/io.js';
|
||||
export class MemoryStream extends InputStream {
|
||||
#offset = 0;
|
||||
|
||||
constructor(private readonly buffer: Uint8Array) {
|
||||
constructor(private readonly buffer: Uint8Array<ArrayBuffer>) {
|
||||
super();
|
||||
}
|
||||
|
||||
public override async read(amount: number): Promise<Uint8Array> {
|
||||
public override async read(amount: number): Promise<Uint8Array<ArrayBuffer>> {
|
||||
const result = this.buffer.subarray(this.#offset, this.#offset + amount);
|
||||
this.#offset += amount;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user