MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / CreateFromFile

Method CreateFromFile

binaryview.cpp:5590–5597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5588
5589
5590Ref<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
5600Ref<BinaryView> BinaryNinja::Load(const std::string& filename, bool updateAnalysis,

Callers

nothing calls this directly

Calls 2

GetObjectMethod · 0.45
GetCallbacksMethod · 0.45

Tested by

no test coverage detected