* Return len and errors in the Write method, to implement io.Writer. * Return a nil error in WriteByte, for compatibility with bufio.