Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 319 for switch_a (0.08 sec)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

          assertTrue(Files.isDirectory(realSymlinkTarget, NOFOLLOW_LINKS));
        }
      }
    
      /**
       * Starts a new task on the given executor that switches (deletes and replaces) a file between
       * being a directory and being a symlink. The given {@code file} is the file that should switch
       * between being a directory and being a symlink, while the given {@code target} is the target the
       * symlink should have.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

                        do {
                            if ( log.isDebugEnabled() ) {
                                log.debug("Need to switch tree for " + dr);
                            }
                            try ( SmbTreeHandleImpl nt = connectHost(loc, session.getTargetHost(), dr) ) {
                                log.debug("Switched tree");
                                return loc;
                            }
                            catch ( IOException e ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  3. schema/field.go

    		field.GORMDataType = field.DataType
    	}
    
    	if val, ok := field.TagSettings["TYPE"]; ok {
    		switch DataType(strings.ToLower(val)) {
    		case Bool, Int, Uint, Float, String, Time, Bytes:
    			field.DataType = DataType(strings.ToLower(val))
    		default:
    			field.DataType = DataType(val)
    		}
    	}
    
    	if field.Size == 0 {
    		switch reflect.Indirect(fieldValue).Kind() {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. internal/s3select/sql/value.go

    	}
    
    	// Types cannot be compared, they do not match.
    	switch op {
    	case opEq:
    		return false, nil
    	case opIneq:
    		return true, nil
    	}
    	return false, errCmpInvalidBoolOperator
    }
    
    func inferTypesForCmp(a *Value, b *Value) error {
    	_, okA := a.ToBytes()
    	_, okB := b.ToBytes()
    	switch {
    	case !okA && !okB:
    		// Both Values already have types
    		return nil
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SpnegoContext.java

                }
                else {
                    if ( targ.getMechanism() != null && !targ.getMechanism().equals(this.selectedMech) ) {
                        throw new SmbException("Server switched mechanism");
                    }
                }
                inputToken = targ.getMechanismToken();
            }
            else {
                throw new SmbException("Invalid token");
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Jan 04 04:18:31 UTC 2021
    - 14.8K bytes
    - Viewed (0)
  6. cmd/batch-job-common-types_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Key":
    			z.Key, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Key")
    				return
    			}
    		case "Value":
    			z.Value, err = dc.ReadString()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  7. callbacks/preload.go

    			return err
    		}
    	}
    
    	fieldValues := make([]interface{}, len(relForeignFields))
    
    	// clean up old values before preloading
    	switch reflectValue.Kind() {
    	case reflect.Struct:
    		switch rel.Type {
    		case schema.HasMany, schema.Many2Many:
    			tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue, reflect.MakeSlice(rel.Field.IndirectFieldType, 0, 10).Interface()))
    		default:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. tensorflow/c/eager/dlpack.cc

      switch (dtype.code) {
        case DLDataTypeCode::kDLBool:
          if (dtype.bits != 8) {
            return tensorflow::errors::InvalidArgument(
                "Only DLPack bools of bitwidth 8 are supported, got: ", dtype.bits);
          }
          *tf_dtype = TF_DataType::TF_BOOL;
          return absl::OkStatus();
    
        case DLDataTypeCode::kDLUInt:
          switch (dtype.bits) {
            case 8:
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/arch/arm64.go

    func IsARM64ADR(op obj.As) bool {
    	switch op {
    	case arm64.AADR, arm64.AADRP:
    		return true
    	}
    	return false
    }
    
    // IsARM64CMP reports whether the op (as defined by an arm64.A* constant) is
    // one of the comparison instructions that require special handling.
    func IsARM64CMP(op obj.As) bool {
    	switch op {
    	case arm64.ACMN, arm64.ACMP, arm64.ATST,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Sep 29 09:04:58 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  10. cmd/postpolicyform.go

    	policyCondStartsWith    = "starts-with"
    	policyCondContentLength = "content-length-range"
    )
    
    // toString - Safely convert interface to string without causing panic.
    func toString(val interface{}) string {
    	switch v := val.(type) {
    	case string:
    		return v
    	default:
    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val interface{}) string {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top