(&mut self)
| 227 | #[cfg(windows)] |
| 228 | impl Drop for NamedMmap { |
| 229 | fn drop(&mut self) { |
| 230 | unsafe { |
| 231 | if !self.view_ptr.is_null() { |
| 232 | UnmapViewOfFile( |
| 233 | windows_sys::Win32::System::Memory::MEMORY_MAPPED_VIEW_ADDRESS { |
| 234 | Value: self.view_ptr as *mut _, |
| 235 | }, |
| 236 | ); |
| 237 | } |
| 238 | if !self.map_handle.is_null() { |
| 239 | CloseHandle(self.map_handle); |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected