pub unsafe fn read_buffer_ref<'d, 's, T: Read>(
reader: &mut T,
buf: BufferRef<'d, 's>,
) -> Result<&'d [u8]>Expand description
A utility function for unsafely implementing ReadBufferRef for readers
that don’t read the buffer passed to Read::read.