feat(secure): add get_playing_session and start working on auto_matchmake_with_param_postpone with RmcSerialize macro

This commit is contained in:
DJMrTV 2025-02-04 22:07:22 +01:00
commit d01acbb931
16 changed files with 338 additions and 23 deletions

View file

@ -1,4 +1,4 @@
use std::io;
use std::{io, mem};
use std::io::Read;
use std::marker::PhantomData;
use bytemuck::Pod;
@ -162,6 +162,14 @@ impl SwapEndian for u64{
}
}
impl SwapEndian for f64{
#[inline]
fn swap_endian(self) -> Self {
//trust me this is safe
unsafe{ mem::transmute::<_, f64>(mem::transmute::<_, u64>(self).swap_bytes()) }
}
}
impl SwapEndian for i8{
#[inline]
fn swap_endian(self) -> Self {