pub fn from_vec(data: Vec<u8>) -> Result<Self> {
        let mut file = Self {
            data,
            ptr: crate::lautil::create_laszip(),
            is_open: false,
        };

        let data_ptr = file.data.as_ptr();
        let data_len = file.data.len() as i64;
        let mut is_compressed = 0;
        file.handle_error(unsafe {
            laszip_sys::laszip_open_reader_array(file.ptr, data_ptr, data_len, &mut is_compressed)
        })?;

        file.is_open = true;

        Ok(file)
    }
/// Creates a reader from a vector
Creates a reader from a vector
Creates a reader from a vector
pub fn from_vec(data: Vec<u8>) -> Result<Self> {
        let mut file = Self {
            data,
            ptr: crate::lautil::create_laszip(),
            is_open: false,
        };
        let data_ptr = file.data.as_ptr();
        let data_len = file.data.len() as i64;
        let mut is_compressed = 0;
        file.handle_error(unsafe {
            laszip_sys::laszip_open_reader_array(file.ptr, data_ptr, data_len, &mut is_compressed)
        })?;
        file.is_open = true;
        Ok(file)
    }
pub fn from_vec ( data : Vec < u8 > ) -> Result < Self > { let mut file = Self { data , ptr : crate :: lautil :: create_laszip ( ) , is_open : false , } ; let data_ptr = file . data . as_ptr ( ) ; let data_len = file . data . len ( ) as i64 ; let mut is_compressed = 0 ; file . handle_error ( unsafe { laszip_sys :: laszip_open_reader_array ( file . ptr , data_ptr , data_len , & mut is_compressed ) } ) ? ; file . is_open = true ; Ok ( file ) }
Creates a reader from a vector
Creates a reader from a vector
data
Vec<u8>