diff --git a/src/utils/utf8.ts b/src/utils/utf8.ts index 68df4516..c3f2c99b 100644 --- a/src/utils/utf8.ts +++ b/src/utils/utf8.ts @@ -100,7 +100,7 @@ function utf8EncodeTEencodeInto(str: string, output: Uint8Array, outputOffset: n export const utf8EncodeTE = sharedTextEncoder && sharedTextEncoder.encodeInto ? utf8EncodeTEencodeInto : utf8EncodeTEencode; -const CHUNK_SIZE = 0x10_000; +const CHUNK_SIZE = 0x1_000; export function utf8DecodeJs(bytes: Uint8Array, inputOffset: number, byteLength: number): string { let offset = inputOffset;