Lyricdev
GitHub

class GzipReader

pub class GzipReader<R :: [Reader]> :: [Reader]

Conforms to Reader.

A Reader that decompresses a gzip file: the header (its extra field, name, comment and header CRC skipped), the deflate blocks, the CRC-32 and the size checked at the end; members in a row read as one. Input that is not gzip, or whose CRC-32 or size does not match, is IoError { kind = .InvalidData }.

Methods

pub static fn new(inner: R): GzipReader<R>
pub mut fn read(into: Slice<uint8>): int throws [IoError, Cancelled]