Write a binary buffer into a global in the database
(&self, key: K, value: &DataBuffer)
| 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> { |
nothing calls this directly
no test coverage detected