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

Method file

rust/src/binary_view.rs:183–188  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

181
182pub trait BinaryViewExt: BinaryViewBase {
183 fn file(&self) -> Ref<FileMetadata> {
184 unsafe {
185 let raw = BNGetFileForView(self.as_ref().handle);
186 FileMetadata::ref_from_raw(raw)
187 }
188 }
189
190 fn type_name(&self) -> BnString {
191 let ptr: *mut c_char = unsafe { BNGetViewType(self.as_ref().handle) };

Callers 2

raw_viewMethod · 0.45
fmtMethod · 0.45

Implementers 1

binary_view.rsrust/src/binary_view.rs

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected