ludic.base: sb_stdout - a StrBuf's bytes to standard output with no string made (a per-frame log line the fence would otherwise see kept)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 22:58:37 +03:00
parent 88580ca319
commit f4233ba11d

View file

@ -64,3 +64,10 @@ export function sb_pat(sb: StrBuf, pat: string, a: string, b: string, c: string,
}
}
}
# the buffer's bytes to standard output as they are (no string made, no newline added): a line a
# frame's code writes without the fence seeing a text kept
export function sb_stdout(sb: StrBuf) -> void {
if sb.n <= 0 { return }
unsafe { file_write(file_stdout(), data_of(sb.b), sb.n) }
}