[−][src]Struct laz::las::laszip::ParLasZipCompressor
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]
W: RefUnwindSafe,
impl<W> Send for ParLasZipCompressor<W> where
W: Send,
[src]
W: Send,
impl<W> Sync for ParLasZipCompressor<W> where
W: Sync,
[src]
W: Sync,
impl<W> Unpin for ParLasZipCompressor<W> where
W: Unpin,
[src]
W: Unpin,
impl<W> UnwindSafe for ParLasZipCompressor<W> where
W: UnwindSafe,
[src]
W: UnwindSafe,
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,
pub 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.
pub 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>,