pub fn open(
path: &str,
block_size: Option<u64>,
max_blocks: Option<usize>,
) -> Result<Arc<dyn ByteSource>>Expand description
Open path as a local file or a URL, wrapped in a block cache.
block_size and max_blocks of None take the recommended values, which
differ by source kind — this is where the file_buffer_size = -1 and
max_file_buffer_count = -1 of the Python API are resolved.