Get a list of files in the project
(&self)
| 628 | |
| 629 | /// Get a list of files in the project |
| 630 | pub fn files(&self) -> Array<ProjectFile> { |
| 631 | let mut count = 0; |
| 632 | let result = unsafe { BNProjectGetFiles(self.handle.as_ptr(), &mut count) }; |
| 633 | assert!(!result.is_null()); |
| 634 | unsafe { Array::new(result, count, ()) } |
| 635 | } |
| 636 | |
| 637 | /// Retrieve a file in the project by unique `id` |
| 638 | pub fn file_by_id<S: BnStrCompatible>(&self, id: S) -> Option<Ref<ProjectFile>> { |
no outgoing calls