Provide copy-free access to raw Decoder bytes
This commit is contained in:
parent
da3b2ca956
commit
2098ea6eba
5 changed files with 12 additions and 21 deletions
|
@ -316,7 +316,7 @@ impl<'a, 'tcx> DecodeContext<'a, 'tcx> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn read_raw_bytes(&mut self, len: usize) -> &'a [u8] {
|
||||
pub fn read_raw_bytes(&mut self, len: usize) -> &[u8] {
|
||||
self.opaque.read_raw_bytes(len)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue