| 5588 | |
| 5589 | |
| 5590 | Ref<BinaryData> BinaryData::CreateFromFile(FileMetadata* file, FileAccessor* accessor) |
| 5591 | { |
| 5592 | // This can fail, and throwing an exception in a c++ ctor is Ugly, so now there's a helper method here |
| 5593 | BNBinaryView* handle = BNCreateBinaryDataViewFromFile(file->GetObject(), accessor->GetCallbacks()); |
| 5594 | if (!handle) |
| 5595 | return nullptr; |
| 5596 | return new BinaryData(handle); |
| 5597 | } |
| 5598 | |
| 5599 | |
| 5600 | Ref<BinaryView> BinaryNinja::Load(const std::string& filename, bool updateAnalysis, |
nothing calls this directly
no test coverage detected