class ByteReader
pub class ByteReader :: [Reader, Seek]
Conforms to Reader, Seek.
A Reader over bytes in memory: it reads them from the front, and seek moves it. A position
past the end reads nothing.
Panics
seek panics on a position before the start.
Methods
pub static fn new(bytes: Slice<uint8>): ByteReader
pub mut fn read(into: Slice<uint8>): int throws IoError
pub mut fn seek(to: SeekFrom): int throws IoError
pub fn position(): int
Returns the position, counted from the start.