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

Method set_data

rust/src/data_buffer.rs:103–111  ·  view source on GitHub ↗
(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

101 }
102
103 pub fn set_data(&mut self, data: &[u8]) {
104 unsafe {
105 BNSetDataBufferContents(
106 self.0,
107 data.as_ptr() as *const c_void as *mut c_void,
108 data.len(),
109 );
110 }
111 }
112
113 pub fn to_escaped_string(&self, null_terminates: bool, escape_printable: bool) -> BnString {
114 unsafe {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected