[][src]Function laz::las::laszip::par_decompress_all_from_file_greedy

pub fn par_decompress_all_from_file_greedy(
    src: &mut BufReader<File>,
    points_out: &mut [u8],
    laz_vlr: &LazVlr
) -> Result<()>

Decompress points from the file in parallel greedily

What is meant by 'greedy' here is that this function will read in memory all the compressed points in order to decompress them as opposed to reading a chunk of points when needed

This fn will decompress as many points as the decompress_points can hold. (But will still load the whole point data in memory even if the decompress_points cannot hold all the points), meaning that points that could not fit in the points_out buffer will be lost.

Each chunk is sent for decompression in a thread.

src must be at the start of the LAZ point data