forked from ROMEO/obsw
this time, we won't reinvent the wheel
This commit is contained in:
@ -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)}
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user