1
Fork 0

Rewrite MemDecoder around pointers not a slice

This commit is contained in:
Ben Kimock 2023-04-20 23:11:47 -04:00
parent 39c6804b92
commit 1f67ba61a9
11 changed files with 174 additions and 130 deletions

View file

@ -84,6 +84,8 @@ pub trait Decoder {
fn read_char(&mut self) -> char;
fn read_str(&mut self) -> &str;
fn read_raw_bytes(&mut self, len: usize) -> &[u8];
fn peek_byte(&self) -> u8;
fn position(&self) -> usize;
}
/// Trait for types that can be serialized