cli: add bounded std copy/search and checked arithmetic

This commit is contained in:
dev committed 2026-10-06 15:40:57 +03:00
1 parent a2ca293506
commit 6397a317e2
36 files changed
+1533 -7

No files matched your search

+2
View File
@@ -354,3 +354,5 @@ match std.bytes.read_u32_be(ref wire[1..5]) {
```
The usual enum rules apply: missing arm `E7004`, wrong enum/payload `E7005`, unknown type/variant `E7002`. See `/docs/library/std.md` for signatures.
`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 `+%`, `-%`, `*%`.