[−][src]Struct laz::las::laszip::LasZipDecompressor
Struct that handles the decompression of the points written in a LAZ file
Methods
impl<'a, R: Read + Seek + 'a> LasZipDecompressor<'a, R>
[src]
pub fn new_with_record_data(
source: R,
laszip_vlr_record_data: &[u8]
) -> Result<Self, LasZipError>
[src]
source: R,
laszip_vlr_record_data: &[u8]
) -> Result<Self, LasZipError>
Creates a new instance from a data source of compressed points
and the record data
of the laszip vlr
pub fn new(source: R, vlr: LazVlr) -> Result<Self, LasZipError>
[src]
Creates a new instance from a data source of compressed points and the LazVlr describing the compressed data
pub fn decompress_one(&mut self, out: &mut [u8]) -> Result<()>
[src]
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,
pub fn into_stream(self) -> R
[src]
pub fn seek(&mut self, point_idx: u64) -> Result<()>
[src]
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.
Trait Implementations
impl<'a, R: Read + Seek> LasPointReader for LasZipDecompressor<'a, R>
[src]
Auto Trait Implementations
impl<'a, R> !RefUnwindSafe for LasZipDecompressor<'a, R>
impl<'a, R> !Send for LasZipDecompressor<'a, R>
impl<'a, R> !Sync for LasZipDecompressor<'a, R>
impl<'a, R> Unpin for LasZipDecompressor<'a, R>
impl<'a, R> !UnwindSafe for LasZipDecompressor<'a, R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,