|
@ -19,7 +19,7 @@ pub enum PacketParseError { |
|
|
ReadError,
|
|
|
ReadError,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
trait PSOPacketData {
|
|
|
|
|
|
|
|
|
pub trait PSOPacketData {
|
|
|
//fn size(&self) -> usize;
|
|
|
//fn size(&self) -> usize;
|
|
|
fn from_bytes<R: Read + Seek>(cursor: &mut R) -> Result<Self, PacketParseError> where Self: Sized;
|
|
|
fn from_bytes<R: Read + Seek>(cursor: &mut R) -> Result<Self, PacketParseError> where Self: Sized;
|
|
|
fn as_bytes(&self) -> Vec<u8>;
|
|
|
fn as_bytes(&self) -> Vec<u8>;
|
|
|