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

Method get_json_string

rust/src/metadata.rs:169–180  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

167 }
168
169 pub fn get_json_string(&self) -> Result<BnString, ()> {
170 match self.get_type() {
171 MetadataType::StringDataType => {
172 let ptr: *mut c_char = unsafe { BNMetadataGetJsonString(self.handle) };
173 if ptr.is_null() {
174 return Err(());
175 }
176 Ok(unsafe { BnString::from_raw(ptr) })
177 }
178 _ => Err(()),
179 }
180 }
181
182 pub fn get_raw(&self) -> Result<Vec<u8>, ()> {
183 match self.get_type() {

Callers 2

load_view_with_progressFunction · 0.45

Calls 1

get_typeMethod · 0.45

Tested by

no test coverage detected