Skip to content
TILens What matters today in tech v0.3.1
Theme

Topic - Edition

Rust

2 items on 13 Sep 2026
Rust

Correctness: casting via `strict_cast()` vs `as`

I'm looking for opinions and advice on the best way to cast "size of buffer" inputs required by ffi calls. given a function of the shape: pub unsafe fn DeviceIoControl( hdevice: HANDLE, dwiocontrolcode: u32, lpinbuffer:…

Source: Rust Users Forum MusicalNinjaDad