Skip to main content

probe

Function probe 

Source
pub fn probe(src: Box<dyn Source>) -> Result<(Vec<u8>, Box<dyn Source>)>
Expand description

Reads a bounded prefix without consuming it.

A seekable source is rewound; a pipe is wrapped in a PeekSource that replays the prefix. Either way the caller still sees byte zero.