Function laz::laszip::compress_buffer

source ·
pub fn compress_buffer<W: Write + Seek + Send>(
    dst: &mut W,
    uncompressed_points: &[u8],
    laz_vlr: LazVlr
) -> Result<()>
Expand description

Compresses all points

The data written will be a standard LAZ file data that means it’s organized like this:

  1. offset to the chunk_table (i64)
  2. the points data compressed
  3. the chunk table

dst: Where the compressed data will be written

uncompressed_points: byte slice of the uncompressed points to be compressed