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

Method write_global_data

rust/src/database.rs:184–188  ·  view source on GitHub ↗

Write a binary buffer into a global in the database

(&self, key: K, value: &DataBuffer)

Source from the content-addressed store, hash-verified

182
183 /// Write a binary buffer into a global in the database
184 pub fn write_global_data<K: BnStrCompatible>(&self, key: K, value: &DataBuffer) -> bool {
185 let key_raw = key.into_bytes_with_nul();
186 let key_ptr = key_raw.as_ref().as_ptr() as *const c_char;
187 unsafe { BNWriteDatabaseGlobalData(self.handle.as_ptr(), key_ptr, value.as_raw()) }
188 }
189
190 /// Get the owning FileMetadata
191 pub fn file(&self) -> Ref<FileMetadata> {

Callers

nothing calls this directly

Calls 3

into_bytes_with_nulMethod · 0.80
as_refMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected