MCPcopy Create free account
hub / github.com/evilsocket/cake / drop

Method drop

cake-core/src/utils/tensor_storage.rs:231–235  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

229#[cfg(unix)]
230impl Drop for MappedShard {
231 fn drop(&mut self) {
232 if !self.mmap_ptr.is_null() && self.mmap_len > 0 {
233 unsafe { libc::munmap(self.mmap_ptr as *mut _, self.mmap_len); }
234 }
235 }
236}
237
238pub struct SafetensorsStorage {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected