mirror of
https://github.com/elder-plinius/G0DM0D3.git
synced 2026-11-16 07:02:25 +00:00
fix: remove incorrect alignment comment in utf8ToBase64
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -462,7 +462,7 @@ async function sha256Hex(str: string): Promise<string> {
|
||||
// creating a single enormous string via Array.from() on the full input.
|
||||
function utf8ToBase64(content: string): string {
|
||||
const bytes = new TextEncoder().encode(content)
|
||||
const CHUNK = 32 * 1024 // 32 KiB — 3-byte aligned (32768 % 3 = 0)
|
||||
const CHUNK = 32 * 1024
|
||||
let binStr = ''
|
||||
for (let i = 0; i < bytes.length; i += CHUNK) {
|
||||
const slice = bytes.subarray(i, Math.min(i + CHUNK, bytes.length))
|
||||
|
||||
Reference in New Issue
Block a user