(t: &T)
| 13 | }; |
| 14 | |
| 15 | pub fn to_bytes<T>(t: &T) -> &[u8] { |
| 16 | unsafe { |
| 17 | let len = core::intrinsics::size_of_val(t); |
| 18 | let ptr: *const u8 = core::intrinsics::transmute(t); |
| 19 | core::slice::from_raw_parts(ptr, len) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | const MAX_NUM_QUEUE: usize = 256; |
| 24 | pub struct Virtio { |
nothing calls this directly
no outgoing calls
no test coverage detected