Function dnstplib::byte::two_byte_extraction

source ยท
pub fn two_byte_extraction(buffer: &[u8], idx: usize) -> u16
Expand description

Take two sequential bytes starting from idx in buffer and return a concatenated 2 byte number