Function uapi::pod_read

source ·
pub fn pod_read<T: Pod, U: Packed + ?Sized>(u: &U) -> Result<T>
Expand description

Converts u to T

u and T must have the same size.