mreiferson/go-snappystream — pull request #6 by bmatsuo (2014-07-22 01:58:27+00:00)
Title: simple BufferedWriter type

```go
func (w *BufferedWriter) Close() error

func (w *BufferedWriter) Flush() error

func (w *BufferedWriter) Write(p []byte) (int, error)
```

- BufferedWriter writes blocks when flushed or MaxBlockSize bytes
accumulate.

- Add tests and benchmarks corresponding to Writer's.

- Rewrite existing tests to demonstrate buffering misalignment.
bytes.Reader/.Buffer types have optimizations which help in io.Copy.

Closes #3