diff --git a/protocol/src/protocol/mod.rs b/protocol/src/protocol/mod.rs index 6dc7667..7d6d9fd 100644 --- a/protocol/src/protocol/mod.rs +++ b/protocol/src/protocol/mod.rs @@ -309,6 +309,16 @@ impl Serializable for u16 { } } +impl Serializable for u64 { + fn read_from(buf: &mut io::Read) -> Result { + Result::Ok(try!(buf.read_u64::())) + } + fn write_to(&self, buf: &mut io::Write) -> Result<(), io::Error> { + try!(buf.write_u64::(*self)); + Result::Ok(()) + } +} + impl Serializable for f32 { fn read_from(buf: &mut io::Read) -> Result { Result::Ok(try!(buf.read_f32::()))