changes...
This commit is contained in:
parent
6af6e65666
commit
40ca10651f
18 changed files with 998 additions and 112 deletions
|
|
@ -3,6 +3,7 @@ use std::io::Read;
|
|||
use std::marker::PhantomData;
|
||||
use std::pin::Pin;
|
||||
use bytemuck::Pod;
|
||||
use tokio::io::{AsyncRead, AsyncReadExt};
|
||||
|
||||
#[cfg(target_endian = "little")]
|
||||
pub const IS_LITTLE_ENDIAN: bool = true;
|
||||
|
|
@ -130,6 +131,8 @@ impl<T: Read> ReadExtensions for T{
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
pub trait SwapEndian: Clone + Copy{
|
||||
fn swap_endian(self) -> Self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue