diff --git a/src/de/read.rs b/src/de/read.rs index 04f9639..87aa304 100644 --- a/src/de/read.rs +++ b/src/de/read.rs @@ -51,12 +51,18 @@ impl <'storage> io::Read for SliceReader<'storage> { fn read(&mut self, out: & mut [u8]) -> io::Result { (&mut self.slice).read(out) } + fn read_exact(&mut self, out: & mut [u8]) -> io::Result<()> { + (&mut self.slice).read_exact(out) + } } impl io::Read for IoReader { fn read(&mut self, out: & mut [u8]) -> io::Result { self.reader.read(out) } + fn read_exact(&mut self, out: & mut [u8]) -> io::Result<()> { + self.reader.read_exact(out) + } } impl <'storage> SliceReader<'storage> {