Skip to main content

pod_write

Function pod_write 

Source
pub fn pod_write<T>(data: &mut [u8], value: &T) -> Result<(), ProgramError>
where T: Pod + FixedLayout,
Expand description

Write a Pod value to bytes (alignment-safe).