this time, we won't reinvent the wheel

This commit is contained in:
2024-02-03 00:03:49 +01:00
parent 3155243ae9
commit 4460e470b2
3 changed files with 26 additions and 41 deletions

View File

@ -24,15 +24,13 @@ struct StoreSlot{
}
impl StoreSlot {
pub fn get_data(&self) -> &[u8] {
pub fn get_data(&self) -> &mut [u8] {
check_global_threading_available!();
unsafe{&(*self.data)}
unsafe{&mut (*self.data)}
}
pub fn get_all_data(&self) -> &[u8] {
pub fn get_all_data(&self) -> &mut [u8] {
check_global_threading_available!();
unsafe{&(*self.data)}
unsafe{&mut (*self.data)}
}
}