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

Method get_data

rust/src/data_buffer.rs:35–42  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

33 }
34
35 pub fn get_data(&self) -> &[u8] {
36 let buffer = unsafe { BNGetDataBufferContents(self.0) };
37 if buffer.is_null() {
38 &[]
39 } else {
40 unsafe { slice::from_raw_parts(buffer as *const _, self.len()) }
41 }
42 }
43
44 pub fn get_data_at(&self, offset: usize) -> &[u8] {
45 let len = self.len();

Callers 5

assembleMethod · 0.45
as_refMethod · 0.45
mainFunction · 0.45
print_memory_informationFunction · 0.45
initMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected