code: func (e *BooleanEncoder) Write(b bool) {
  	// If we have filled the current byte, flush it
  	if e.i >= 8 {
  		e.flush()
  	}
  
  	// Use 1 bit for each boolean value, shift the current byte
  	// by 1 and set the least signficant bit acordingly
  	e.b = e.b << 1
  	if b {
  		e.b |= 1
  	}
  
  	// Increment the current boolean count
  	e.i++
  	// Increment the total boolean count
  	e.n++
  }
docs: // Write encodes b to the underlying buffer.