Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 3,270 for switch (0.05 sec)

  1. doc/go_spec.html

    against the value of the switch expression.
    In a type switch, the cases contain types that are compared against the
    type of a specially annotated switch expression.
    The switch expression is evaluated exactly once in a switch statement.
    </p>
    
    <h4 id="Expression_switches">Expression switches</h4>
    
    <p>
    In an expression switch,
    the switch expression is evaluated and
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbException.java

        /**
         * Gets recommended retry delay in milliseconds
         *
         * @return retry delay or 0 if no retry
         */
        public long getRetryDelay() {
            switch (severity) {
            case RECOVERABLE:
                return 100; // Immediate retry with small delay
            case TRANSIENT:
                return 5000; // Wait 5 seconds
            default:
                return 0; // No retry
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtlmContext.java

         */
        public byte[] initSecContext(byte[] token, final int offset, final int len) throws SmbException {
            switch (state) {
            case 1:
                final Type1Message msg1 = new Type1Message(ntlmsspFlags, auth.getDomain(), workstation);
                token = msg1.toByteArray();
    
                if (LogStream.level >= 4) {
                    log.println(msg1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

         *
         * @param algorithm the algorithm constant
         * @return the algorithm name
         */
        public static String getAlgorithmName(int algorithm) {
            switch (algorithm) {
            case COMPRESSION_NONE:
                return "None";
            case COMPRESSION_LZ77:
                return "LZ77";
            case COMPRESSION_LZ77_HUFFMAN:
                return "LZ77+Huffman";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. cmd/config-current.go

    	globalServerConfig   config.Config
    	globalServerConfigMu sync.RWMutex
    )
    
    func validateSubSysConfig(ctx context.Context, s config.Config, subSys string, objAPI ObjectLayer) error {
    	switch subSys {
    	case config.SiteSubSys:
    		if _, err := config.LookupSite(s[config.SiteSubSys][config.Default], s[config.RegionSubSys][config.Default]); err != nil {
    			return err
    		}
    	case config.APISubSys:
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SigningDigest.java

                if (LogStream.level > 0) {
                    ex.printStackTrace(log);
                }
                throw new SmbException("MD5", ex);
            }
    
            try {
                switch (LM_COMPATIBILITY) {
                case 0:
                case 1:
                case 2:
                    macSigningKey = new byte[40];
                    auth.getUserSessionKey(transport.server.encryptionKey, macSigningKey, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. cmd/metrics-v3-system-drive.go

    	m.Set(driveFreeInodes, float64(drive.FreeInodes), labels...)
    	m.Set(driveTotalInodes, float64(drive.UsedInodes+drive.FreeInodes), labels...)
    
    	var health float64
    	switch drive.Healing {
    	case true:
    		health = driveHealthHealing
    	case false:
    		if drive.State == "ok" {
    			health = driveHealthOnline
    		} else {
    			health = driveHealthOffline
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. cmd/admin-handlers-config-kv.go

    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    	result, err := setConfigKV(ctx, objectAPI, kvBytes)
    	if err != nil {
    		switch err.(type) {
    		case badConfigErr:
    			writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), err.Error(), r.URL)
    		default:
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.7K bytes
    - Viewed (1)
  9. tests/migrate_test.go

    					sql)
    			}
    		},
    	}
    
    	DB.Migrator().DropTable(&MigrateInt{})
    
    	// The first AutoMigrate to make table with field with correct type
    	if err := DB.AutoMigrate(&MigrateInt{}); err != nil {
    		t.Fatalf("Failed to auto migrate: error: %v", err)
    	}
    
    	// make new session to set custom logger tracer
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 65.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

                this.info = inf;
            }
            return bufferIndex - start;
        }
    
        private FileInformation createFileInformation() {
            FileInformation inf;
            switch (this.informationLevel) {
            case FileInformation.FILE_BASIC_INFO:
                inf = new FileBasicInfo();
                break;
            case FileInformation.FILE_STANDARD_INFO:
                inf = new FileStandardInfo();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top