diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-04-20 23:11:47 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-04-23 17:25:11 -0400 |
| commit | 1f67ba61a985c621cb10ae091aaa5c2b009aa721 (patch) | |
| tree | 52a4faa8677ba86d334ca924d454776db8be606d /compiler/rustc_serialize/src/serialize.rs | |
| parent | 39c6804b92aa202369e402525cee329556bc1db0 (diff) | |
| download | rust-1f67ba61a985c621cb10ae091aaa5c2b009aa721.tar.gz rust-1f67ba61a985c621cb10ae091aaa5c2b009aa721.zip | |
Rewrite MemDecoder around pointers not a slice
Diffstat (limited to 'compiler/rustc_serialize/src/serialize.rs')
| -rw-r--r-- | compiler/rustc_serialize/src/serialize.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_serialize/src/serialize.rs b/compiler/rustc_serialize/src/serialize.rs index 527abc23727..a6d9c7b7d42 100644 --- a/compiler/rustc_serialize/src/serialize.rs +++ b/compiler/rustc_serialize/src/serialize.rs @@ -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 |
