JMAP protocol layer refactoring (part 2)

This commit is contained in:
mdecimus
2025-09-24 18:14:44 +02:00
parent 6c612f7e1c
commit a95010c42e
60 changed files with 2260 additions and 1747 deletions

View File

@@ -132,6 +132,15 @@ impl<'x> Base32Reader<'x> {
}
}
#[allow(clippy::should_implement_trait)]
pub fn from_iter(bytes: Iter<'x, u8>) -> Self {
Base32Reader {
bytes,
pos: 0,
last_byte: 0,
}
}
#[inline(always)]
fn map_byte(&mut self) -> Option<u8> {
match self.bytes.next() {