cli: add supplied-buffer decimal integer formatting to std

This commit is contained in:
dev committed 2026-10-06 17:18:33 +03:00
1 parent 3bb11e03b2
commit 618b4b95c1
30 files changed
+3609 -11

No files matched your search

+2
View File
@@ -358,3 +358,5 @@ The usual enum rules apply: missing arm `E7004`, wrong enum/payload `E7005`, unk
`std.bytes.copy` returns `WriteResult`; short output is unchanged and overlap rejects. `find_slice` returns `FindResult::found(index)` / `not_found` (empty needle: found at 0). Recoverable `u64`/`usize` arithmetic, split composition and a checked example are in `/docs/library/std.md`; wrapping stays `+%`, `-%`, `*%`.
`std.utf8` validates bytes and decodes the next scalar with an explicit consumed count. `std.encoding.hex` and `std.encoding.base64` encode/decode into `mut` output slices; ordinary enum results expose malformed input and short capacity, leaving output unchanged on errors. Base64 accepts canonical padded standard encoding. Signatures and a checked example are in `/docs/library/std.md`.
`std.fmt.write_u64/i64/usize/isize` write decimal integers into supplied output slices; `WriteResult::ok(count)` / `short_output` expose capacity, with unchanged output on failure. Composition and signatures are in `/docs/library/std.md`.