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

Method offset_valid

rust/src/binary_view.rs:93–99  ·  view source on GitHub ↗
(&self, offset: u64)

Source from the content-addressed store, hash-verified

91 }
92
93 fn offset_valid(&self, offset: u64) -> bool {
94 let mut buf = [0u8; 1];
95
96 // don't use self.read so that if segments were used we
97 // check against those as well
98 self.as_ref().read(&mut buf[..], offset) == buf.len()
99 }
100
101 fn offset_readable(&self, offset: u64) -> bool {
102 self.offset_valid(offset)

Callers

nothing calls this directly

Implementers 2

binary_view.rsrust/src/binary_view.rs
view.rsview/minidump/src/view.rs

Calls 3

readMethod · 0.45
as_refMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected