Function get_bytes_from_slice

Source
pub fn get_bytes_from_slice(buffer: &[u8], from: usize, to: usize) -> Vec<u8> 
Expand description

===================================* * Array/vec/set manipulators * * *===================================== This functions return a bytes slice according to the given bounds. FROM and TO are include in the returned slice.

@param buffer: &u8, the original array, @param from: usize, first bound, @param to: usize, last bound,

@return Vec, the slice requested