pub fn from_ptr(tsk_fs_meta: *const tsk::TSK_FS_META) -> Result<Self, TskError> {
        if tsk_fs_meta.is_null() {
            // Get a ptr to the error msg
            let error_msg_ptr = unsafe { tsk::tsk_error_get() };
            // Get the error message from the string
            let error_msg = unsafe { CStr::from_ptr(error_msg_ptr) }.to_string_lossy();
            // Return an error which includes the TSK error message
            return Err(TskError::tsk_fs_meta_error(
                format!("Error TSK_FS_META is null: {}", error_msg)
            ));
        }

        Ok(Self(tsk_fs_meta))
    }
/// Get TskFsMeta wrapper given a TSK_FS_META pointer
Get TskFsMeta wrapper given a TSK_FS_META pointer
Get TskFsMeta wrapper given a TSK_FS_META pointer
pub fn from_ptr(tsk_fs_meta: *const tsk::TSK_FS_META) -> Result<Self, TskError> {
        if tsk_fs_meta.is_null() {
            // Get a ptr to the error msg
            let error_msg_ptr = unsafe { tsk::tsk_error_get() };
            // Get the error message from the string
            let error_msg = unsafe { CStr::from_ptr(error_msg_ptr) }.to_string_lossy();
            // Return an error which includes the TSK error message
            return Err(TskError::tsk_fs_meta_error(
                format!("Error TSK_FS_META is null: {}", error_msg)
            ));
        }
        Ok(Self(tsk_fs_meta))
    }
pub fn from_ptr ( tsk_fs_meta : * const tsk :: TSK_FS_META ) -> Result < Self , TskError > { if tsk_fs_meta . is_null ( ) { // Get a ptr to the error msg let error_msg_ptr = unsafe { tsk :: tsk_error_get ( ) } ; // Get the error message from the string let error_msg = unsafe { CStr :: from_ptr ( error_msg_ptr ) } . to_string_lossy ( ) ; // Return an error which includes the TSK error message return Err ( TskError :: tsk_fs_meta_error ( format ! ( " " error_msg ) ) ) ; } Ok ( Self ( tsk_fs_meta ) ) }
Get TskFsMeta wrapper given a TSK_FS_META pointer
Get TskFsMeta wrapper given a TSK_FS_META pointer
tsk_fs_meta
*const tsk::TSK_FS_META