Get a list of all keys stored in the kvs
(&self)
| 35 | |
| 36 | /// Get a list of all keys stored in the kvs |
| 37 | pub fn keys(&self) -> Array<BnString> { |
| 38 | let mut count = 0; |
| 39 | let result = unsafe { BNGetKeyValueStoreKeys(self.handle.as_ptr(), &mut count) }; |
| 40 | assert!(!result.is_null()); |
| 41 | unsafe { Array::new(result, count, ()) } |
| 42 | } |
| 43 | |
| 44 | /// Get the value for a single key |
| 45 | pub fn value<S: BnStrCompatible>(&self, key: S) -> Option<DataBuffer> { |
no outgoing calls
no test coverage detected