Relative Content

Tag Archive for c++rustunsafezero-copy

How to access unaligned data in rust without copies

I have a code base that loads a huge binary data file in memory and, without additional allocations, map it to proper data types (u32, f64, f32…). The problem is that this file is packed, and a recent change in rust 1.78 broke this.