changes...

This commit is contained in:
DJMrTV 2025-01-26 12:09:56 +01:00
commit 40ca10651f
18 changed files with 998 additions and 112 deletions

View file

@ -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;
}