Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 702 for switch_b (0.07 sec)

  1. cmd/mrf.go

    		}
    		if n != len(data) {
    			return errors.New("heal mrf: no data")
    		}
    		// Read resync meta header
    		switch binary.LittleEndian.Uint16(data[0:2]) {
    		case healMRFMetaFormat:
    		default:
    			return fmt.Errorf("heal mrf: unknown format: %d", binary.LittleEndian.Uint16(data[0:2]))
    		}
    		switch binary.LittleEndian.Uint16(data[2:4]) {
    		case healMRFMetaVersionV1:
    		default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. cmd/object-api-datatypes_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, bts, err = msgp.ReadMapKeyZC(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Name":
    			z.Name, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Name")
    				return
    			}
    		case "Created":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  3. internal/s3select/sql/value_contrib.go

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package sql
    
    import "time"
    
    func timestampCompare(op string, left, right time.Time) bool {
    	switch op {
    	case opLt:
    		return left.Before(right)
    	case opLte:
    		return left.Before(right) || left.Equal(right)
    	case opGt:
    		return left.After(right)
    	case opGte:
    		return left.After(right) || left.Equal(right)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/MavenSimpleConfiguration.java

     *
     * @since 3.1.0
     */
    public class MavenSimpleConfiguration extends BaseSlf4jConfiguration {
        @Override
        public void setRootLoggerLevel(Level level) {
            String value;
            switch (level) {
                case DEBUG:
                    value = "debug";
                    break;
    
                case INFO:
                    value = "info";
                    break;
    
                default:
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. cmd/tier_test.go

    		globalTierMetrics.logSuccess(tier)
    	}
    	for i := 0; i < expFailure; i++ {
    		globalTierMetrics.logFailure(tier)
    	}
    	metrics := globalTierMetrics.Report()
    	var succ, fail float64
    	for _, metric := range metrics {
    		switch metric.Description.Name {
    		case tierRequestsSuccess:
    			succ += metric.Value
    		case tierRequestsFailure:
    			fail += metric.Value
    		}
    	}
    	if int(succ) != expSuccess {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 21 04:13:40 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/text/JsonUtil.java

            }
    
            char c;
            final int len = value.length();
            final StringBuilder buf = new StringBuilder(len * 2);
    
            for (int i = 0; i < len; i++) {
                c = value.charAt(i);
                switch (c) {
                case '\\':
                case '"':
                    buf.append('\\');
                    buf.append(c);
                    break;
                case '/':
                    buf.append('\\');
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. 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 Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
  8. cmd/warm-backend-gcs.go

    		bucket = params[0]
    	}
    	if len(params) == 2 {
    		object = params[1]
    	}
    	if len(params) == 3 {
    		uploadID = params[2]
    	}
    
    	// in some cases just a plain error is being returned
    	switch err.Error() {
    	case "storage: bucket doesn't exist":
    		err = BucketNotFound{
    			Bucket: bucket,
    		}
    		return err
    	case "storage: object doesn't exist":
    		if uploadID != "" {
    			err = InvalidUploadID{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. internal/config/lambda/target/webhook.go

    	if err != nil {
    		if xnet.IsNetworkOrHostDown(err, false) {
    			return false, errNotConnected
    		}
    		return false, err
    	}
    	tokens := strings.Fields(target.args.AuthToken)
    	switch len(tokens) {
    	case 2:
    		req.Header.Set("Authorization", target.args.AuthToken)
    	case 1:
    		req.Header.Set("Authorization", "Bearer "+target.args.AuthToken)
    	}
    
    	resp, err := target.httpClient.Do(req)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:39:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/endtoend_test.go

    		parts := strings.Split(line, "//")
    		printed := strings.TrimSpace(parts[0])
    		if printed == "" || strings.HasSuffix(printed, ":") { // empty or label
    			continue
    		}
    		seq++
    
    		var hexes string
    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    			// no comment
    		case 2:
    			// might be printed form or hex
    			note := strings.TrimSpace(parts[1])
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top