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

Method to_hashmap

rust/src/database/kvs.rs:26–34  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

24 }
25
26 pub fn to_hashmap(&self) -> HashMap<String, DataBuffer> {
27 let mut hashmap = HashMap::with_capacity(self.keys().len());
28 for key in self.keys().iter() {
29 if let Some(value) = self.value(key) {
30 hashmap.insert(key.to_string(), value);
31 }
32 }
33 hashmap
34 }
35
36 /// Get a list of all keys stored in the kvs
37 pub fn keys(&self) -> Array<BnString> {

Callers

nothing calls this directly

Calls 5

lenMethod · 0.45
keysMethod · 0.45
iterMethod · 0.45
valueMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected