Lyricdev
GitHub

class GzipWriter

pub class GzipWriter<W :: [Writer]> :: [Writer, Closeable]

Conforms to Writer, Closeable.

A Writer that compresses into a gzip file: the header, the deflate blocks, the CRC-32 and the size at close.

Methods

pub static fn new(inner: W, level: int = 6): GzipWriter<W> throws CompressError
pub fn bytesIn(): int

Returns the number of bytes taken so far.

pub mut fn write(from: Slice<uint8>): int throws [IoError, Cancelled]
pub mut fn flush(): void throws [IoError, Cancelled]
pub fn close(): void throws [IoError, Cancelled]