MCPcopy Create free account
hub / github.com/buyukakyuz/corroded / stack_read_offset

Function stack_read_offset

src/buffer.rs:171–176  ·  view source on GitHub ↗
(var: &T, offset: isize)

Source from the content-addressed store, hash-verified

169}
170
171pub fn stack_read_offset<T: Copy, U: Copy>(var: &T, offset: isize) -> U {
172 unsafe {
173 let ptr = (var as *const T as *const u8).offset(offset);
174 *(ptr as *const U)
175 }
176}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected