code: func (c *Compressor) Write(p []byte) (int, error) {
  	c.d = append(c.d, p...)
  	n := len(p)
  	c.inSize += n
  	return n, nil
  }
docs: // Write implements the io.Writer interface.  To compress data Write
  // repeatedly and it will be compressed.  When done it is necessary to
  // call Close() where the actual compression occurs.