pub fn attr_getsize(&self) -> Result<i32, TskError> {
        // Get a pointer to the TSK_FS_FILE sturct
        let attr_count = unsafe {tsk::tsk_fs_file_attr_getsize(
            self.into()
        )};

        if attr_count == -1 {
            // 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::lib_tsk_error(
                format!("There was an error getting attribute count for indoe {}: {}", self.get_meta().unwrap().addr(), error_msg)
            ));
        }

        Ok(attr_count)
    }
/// Return the number of attributes in the file. 
Return the number of attributes in the file.
Return the number of attributes in the file .
pub fn attr_getsize(&self) -> Result<i32, TskError> {
        // Get a pointer to the TSK_FS_FILE sturct
        let attr_count = unsafe {tsk::tsk_fs_file_attr_getsize(
            self.into()
        )};
        if attr_count == -1 {
            // 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::lib_tsk_error(
                format!("There was an error getting attribute count for indoe {}: {}", self.get_meta().unwrap().addr(), error_msg)
            ));
        }
        Ok(attr_count)
    }
pub fn attr_getsize ( & self ) -> Result < i32 , TskError > { // Get a pointer to the TSK_FS_FILE sturct let attr_count = unsafe { tsk :: tsk_fs_file_attr_getsize ( self . into ( ) ) } ; if attr_count == - 1 { // 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 :: lib_tsk_error ( format ! ( " " self get_meta ( ) unwrap ( ) addr ( ) error_msg ) ) ) ; } Ok ( attr_count ) }
Return the number of attributes in the file.
Return the number of attributes in the file .
&self