You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am interested in the way you guarantee the safety of alignment issues. Take read_u32 for example, we are worried that the data is aligned to 1 byte rather than 4 bytes here. Do you use the offset starting from 4 bytes with buffer[start..] to solve the issue?
In other words, if we use transmute($buf.buffer.as_ptr()), then it is still dangerous?
The text was updated successfully, but these errors were encountered:
grcov/src/reader.rs
Lines 169 to 177 in 322fc39
Hi, I am interested in the way you guarantee the safety of alignment issues. Take
read_u32
for example, we are worried that the data is aligned to 1 byte rather than 4 bytes here. Do you use the offset starting from 4 bytes withbuffer[start..]
to solve the issue?In other words, if we use
transmute($buf.buffer.as_ptr())
, then it is still dangerous?The text was updated successfully, but these errors were encountered: