Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AddFile (0.73 sec)

  1. src/cmd/pack/pack.go

    type FileLike interface {
    	Name() string
    	Stat() (fs.FileInfo, error)
    	Read([]byte) (int, error)
    	Close() error
    }
    
    // addFile adds a single file to the archive
    func (ar *Archive) addFile(fd FileLike) {
    	// Format the entry.
    	// First, get its info.
    	info, err := fd.Stat()
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/AdditionalVariantsMetadataRulesIntegrationTest.groovy

                            });
                            variantMetadata.withFiles(variantFiles -> {
                                variantFiles.addFile(id.getName() + "-" + id.getVersion() + "-my-samples.jar");
                            });
                        });
                    }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 16:23:01 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    	readFile := pass.ReadFile
    	if readFile == nil {
    		readFile = os.ReadFile
    	}
    	content, err := readFile(filename)
    	if err != nil {
    		return nil, nil, err
    	}
    	tf := pass.Fset.AddFile(filename, -1, len(content))
    	tf.SetLinesForContent(content)
    	return content, tf, nil
    }
    
    // LineStart returns the position of the start of the specified line
    // within file f, or NoPos if there is no line of that number.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/support.go

    	// all positions have been calculated (by way of fakeFileSet.setLines), so
    	// that we can avoid setting unnecessary lines. See also golang/go#46586.
    	f := s.files[file]
    	if f == nil {
    		f = &fileInfo{file: s.fset.AddFile(file, -1, maxlines)}
    		s.files[file] = f
    	}
    
    	if line > maxlines {
    		line = 1
    	}
    	if line > f.lastline {
    		f.lastline = line
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top