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

Method push

rust/src/metadata.rs:286–292  ·  view source on GitHub ↗
(&self, value: &Metadata)

Source from the content-addressed store, hash-verified

284 }
285
286 pub fn push(&self, value: &Metadata) -> Result<(), ()> {
287 if self.get_type() != MetadataType::ArrayDataType {
288 return Err(());
289 }
290 unsafe { BNMetadataArrayAppend(self.handle, value.handle) };
291 Ok(())
292 }
293
294 pub fn insert<S: BnStrCompatible>(&self, key: S, value: &Metadata) -> Result<(), ()> {
295 if self.get_type() != MetadataType::KeyValueDataType {

Callers 1

fromMethod · 0.45

Calls 1

get_typeMethod · 0.45

Tested by

no test coverage detected