[−][src]Function autocompress::create
pub fn create(path: impl AsRef<Path>) -> Result<Encoder<File>>
Create new writer from file path. File format is suggested from file extension.
let mut writer = create("create.txt.lz4")?; writer.write_all(b"hello, world")?;