Create a new, empty in-memory working copy. # Example ```rust use atomic_core::output::Memory; let wc = Memory::new(); ```
()
| 269 | /// let wc = Memory::new(); |
| 270 | /// ``` |
| 271 | pub fn new() -> Self { |
| 272 | Self { |
| 273 | files: RefCell::new(HashMap::new()), |
| 274 | next_inode: AtomicU64::new(1), // Start from 1, 0 is ROOT |
| 275 | non_writable: RefCell::new(Vec::new()), |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /// Allocate a new unique inode. |
| 280 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected