1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//! # Cache
//!
//! Memory that is used not to re-allocate,
//! it represents 256 KB of memory which can fit into cache.

// Structures.
pub struct Cache([i32; 0x10000]);
// Implementations.
impl Cache {
    pub fn new() -> Self {
        Self([0; 0x10000])
    }
    pub fn inner_mut(&mut self) -> &mut [i32; 0x10000] {
        &mut self.0
    }
}