Working mqtt broker

This commit is contained in:
Connor Slade
2024-06-24 14:14:44 -04:00
parent 9e59e5a08a
commit c9f07466cb
9 changed files with 280 additions and 85 deletions

View File

@@ -14,6 +14,10 @@ impl<'a> Deserializer<'a> {
}
}
pub fn pos(&self) -> usize {
self.offset
}
pub fn read_bool(&mut self) -> bool {
self.read_u8() != 0
}