Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for lengthOf (0.23 sec)

  1. tensorflow/c/c_test.c

        return 1;
      }
    
      char file_name[100];
      time_t t = time(NULL);
      snprintf(file_name, sizeof(file_name), "test-%d-%ld.txt", getpid(), t);
    
      size_t length = 2 + strlen(path) + strlen(file_name);
      char* full_path = malloc(length);
      snprintf(full_path, length, "%s/%s", path, file_name);
    
      TF_WritableFileHandle* h;
      TF_Status* status = TF_NewStatus();
      TF_NewWritableFile(full_path, &h, status);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. cmd/storage-rest-server.go

    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	length, err := strconv.Atoi(r.Form.Get(storageRESTLength))
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	w.Header().Set(xhttp.ContentLength, strconv.Itoa(length))
    
    	rc, err := s.getStorage().ReadFileStream(r.Context(), volume, filePath, int64(offset), int64(length))
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  3. errors.go

    	// ErrInvalidValue invalid value
    	ErrInvalidValue = errors.New("invalid value, should be pointer to struct or slice")
    	// ErrInvalidValueOfLength invalid values do not match length
    	ErrInvalidValueOfLength = errors.New("invalid association values, length doesn't match")
    	// ErrPreloadNotAllowed preload is not allowed when count is used
    	ErrPreloadNotAllowed = errors.New("preload is not allowed when count is used")
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/RemoteSnapshotMetadata.java

                if (version.endsWith(SNAPSHOT)) {
                    String qualifier = snapshot.getTimestamp() + '-' + snapshot.getBuildNumber();
                    version = version.substring(0, version.length() - SNAPSHOT.length()) + qualifier;
                }
    
                SnapshotVersion sv = SnapshotVersion.newBuilder()
                        .classifier(artifact.getClassifier())
                        .extension(artifact.getExtension())
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 10:10:21 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. migrator/migrator.go

    					isSameType = true
    					break
    				}
    			}
    
    			if !isSameType {
    				alterColumn = true
    			}
    		}
    	}
    
    	if !isSameType {
    		// check size
    		if length, ok := columnType.Length(); length != int64(field.Size) {
    			if length > 0 && field.Size > 0 {
    				alterColumn = true
    			} else {
    				// has size in data type and not equal
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	rotational bool
    	walkMu     *sync.Mutex
    	walkReadMu *sync.Mutex
    }
    
    // checkPathLength - returns error if given path name length more than 255
    func checkPathLength(pathName string) error {
    	// Apple OS X path length is limited to 1016
    	if runtime.GOOS == "darwin" && len(pathName) > 1016 {
    		return errFileNameTooLong
    	}
    
    	// Disallow more than 1024 characters on windows, there
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                        filters.add(new HighestVersionFilter(num));
                    } else if ("l".equals(expression)) {
                        filters.add(new LowestVersionFilter());
                    } else if (expression.startsWith("l(") && expression.endsWith(")")) {
                        int num = Integer.parseInt(expression.substring(2, expression.length() - 1));
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    	if startOffset > fi.Size || startOffset+length > fi.Size {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Get start part index and offset.
    	partIndex, partOffset, err := fi.ObjectToPartOffset(ctx, startOffset)
    	if err != nil {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Calculate endOffset according to length
    	endOffset := startOffset
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  9. cmd/storage-rest-client.go

    func (client *storageRESTClient) call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (io.ReadCloser, error) {
    	if values == nil {
    		values = make(url.Values)
    	}
    	values.Set(storageRESTDiskID, *client.diskID.Load())
    	respBody, err := client.restClient.Call(ctx, method, values, body, length)
    	if err != nil {
    		return nil, toStorageErr(err)
    	}
    	return respBody, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  10. maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

                results.add(result);
    
                Artifact artifact = request.getArtifact();
                if ("maven-test".equals(artifact.getGroupId())) {
                    String scope = artifact.getArtifactId().substring("scope-".length());
    
                    try {
                        artifact = artifact.setFile(ProjectClasspathTestType.getFileForClasspathResource(
                                ProjectClasspathTestType.dir + "transitive-" + scope + "-dep.xml"));
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top