[][src]Struct laz::las::laszip::ParLasZipCompressor

pub struct ParLasZipCompressor<W> { /* fields omitted */ }

LasZip compressor that compresses using multiple threads

This works by forming complete chunks of points with the points data passed when compress_many is called. These complete chunks are compressed & written right away and points that are 'leftovers' are kept until the next call to compress_many or done.

Implementations

impl<W: Write + Seek> ParLasZipCompressor<W>[src]

pub fn new(dest: W, vlr: LazVlr) -> Result<Self>[src]

Creates a new ParLasZipCompressor

pub fn compress_many(&mut self, points: &[u8]) -> Result<()>[src]

Compresses many points using multiple threads

For this function to actually use multiple threads, the points buffer shall hold more points that the vlr's chunk_size.

pub fn done(&mut self) -> Result<()>[src]

Tells the compressor that no more points will be compressed

  • Compresses & writes the rest of the points to form the last chunk
  • Writes the chunk table
  • update the offset to the chunk_table

pub fn vlr(&self) -> &LazVlr[src]

pub fn into_inner(self) -> W[src]

pub fn get_mut(&mut self) -> &mut W[src]

pub fn get(&self) -> &W[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for ParLasZipCompressor<W> where
    W: RefUnwindSafe
[src]

impl<W> Send for ParLasZipCompressor<W> where
    W: Send
[src]

impl<W> Sync for ParLasZipCompressor<W> where
    W: Sync
[src]

impl<W> Unpin for ParLasZipCompressor<W> where
    W: Unpin
[src]

impl<W> UnwindSafe for ParLasZipCompressor<W> where
    W: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.