Browse Source

make psopacketdata trait public

pull/3/head
jake 5 years ago
parent
commit
cae4fe01ba
  1. 2
      src/lib.rs

2
src/lib.rs

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

Loading…
Cancel
Save