# Struct oxipng::deflate::stream::Stream [−] [src]

    pub struct Stream<D: Direction> {
        // some fields omitted
    }

## Methods

### `impl Stream<Compress>`

#### `fn new_compress(lvl: c_int, window_bits: c_int, mem_size: c_int, strategy: c_int) -> Stream<Compress>`

#### `fn new_decompress() -> Stream<Decompress>`

### `impl<T: Direction> Stream<T>`

#### `fn total_in(&self) -> usize`

#### `fn total_out(&self) -> usize`

### `impl Stream<Decompress>`

#### `fn decompress_vec(&mut self, input: &mut [u8], output: &mut Vec<u8>) -> c_int`

### `impl Stream<Compress>`

#### `fn compress_vec(&mut self, input: &mut [u8], output: &mut Vec<u8>) -> c_int`

#### `fn reset(&mut self) -> c_int`

## Trait Implementations

### `impl<D: Direction> Drop for Stream<D>`

#### `fn drop(&mut self)`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)