Rewrite MemDecoder around pointers not a slice
This commit is contained in:
parent
39c6804b92
commit
1f67ba61a9
11 changed files with 174 additions and 130 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue