feat(secure): add get_playing_session and start working on auto_matchmake_with_param_postpone with RmcSerialize macro
This commit is contained in:
parent
d8c184171d
commit
d01acbb931
16 changed files with 338 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue