Skip to main content

byte_slots

Function byte_slots 

Source
pub fn byte_slots<B: AsRef<[u8]> + ?Sized>(value: &B) -> (*const u8, usize)
Expand description

Borrow a bytes-like argument as the (ptr, len) slots of a callback method call.