Skip to main content

input_from_stream

Function input_from_stream 

Source
pub fn input_from_stream(
    custom_io: StreamIo,
    filename: Option<&str>,
    options: Option<Dictionary<'_>>,
) -> Result<Input, Error>
Expand description

Opens an input from a readable context::StreamIo (created with StreamIo::from_read or StreamIo::from_read_seek).

An optional filename helps with format detection; options configure the format context. Fails with EINVAL if custom_io is a write context or filename contains an interior NUL byte.