Struct laz::LasZipDecompressor[][src]

pub struct LasZipDecompressor<'a, R: Read + Seek + 'a> { /* fields omitted */ }
Expand description

LasZip decompressor that decompresses points.

Supports both fixed-size and variable-size chunks.

Implementations

Creates a new instance from a data source of compressed points and the LazVlr describing the compressed data

Decompress the next point and write the uncompressed data to the out buffer.

  • The buffer should have at least enough byte to store the decompressed data
  • The data is written in the buffer exactly as it would have been in a LAS File in Little Endian order,

Decompress as many points as the out slice can hold

Note

If the out slice contains more space than there are points the function will still decompress and thus and error will occur

Seeks to the point designed by the index

Important

Seeking in compressed data has a higher cost than non compressed data because the stream has to be moved to the start of the chunk and then we have to decompress points in the chunk until we reach the one we want.

Returns the vlr used.

Consumes the decompressor and returns the data source.

Returns a reference to the data source.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.