from_path

Function from_path 

Source
pub fn from_path<E: Endianness, W: Word>(
    path: impl AsRef<Path>,
) -> Result<BufBitWriter<E, WordAdapter<W, BufWriter<File>>, DefaultWriteParams>>
Expand description

Creates a new BufBitWriter with default read parameters from a file path using the provided endianness and read word.

ยงExamples

use dsi_bitstream::prelude::*;
let mut writer = buf_bit_writer::from_path::<LE, u64>("data.bin")?;