read_cyclic_bounded_vec_at

Function read_cyclic_bounded_vec_at 

Source
pub unsafe fn read_cyclic_bounded_vec_at<T>(
    bytes: &[u8],
    offset: &mut usize,
    metadata: &CyclicBoundedVecMetadata,
) -> CyclicBoundedVec<T>
where T: Clone,
Expand description

Creates a CyclicBoundedVec from the sequence of values provided in bytes buffer.

§Safety

This is higly unsafe. This function doesn’t ensure alignment and correctness of provided buffer. The responsibility of such checks is on the caller.