Start on mqtt implementation

Why are there no good embeddable mqtt libs for rust..
This commit is contained in:
Connor Slade
2024-06-23 23:56:39 -04:00
parent 1a69872055
commit b113def198
11 changed files with 311 additions and 4 deletions

View File

@@ -76,4 +76,8 @@ impl<'a> Deserializer<'a> {
pub fn read_sized_string<const SIZE: usize>(&mut self) -> SizedString<SIZE> {
SizedString::new(self.read_bytes(SIZE))
}
pub fn is_empty(&self) -> bool {
self.offset == self.buffer.len()
}
}