vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)

This commit is contained in:
Nick Treleaven 2021-02-15 15:15:52 +00:00 committed by GitHub
parent 4bdbb0cfa8
commit 4a0367a63c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 82 additions and 60 deletions

View file

@ -170,7 +170,7 @@ fn rw_callback(loop &C.picoev_loop, fd int, events int, cb_arg voidptr) {
}
} else {
r += idx
mut s := tos(buf, r)
mut s := unsafe { tos(buf, r) }
mut out := p.out
unsafe {
out += fd * max_write