- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,767 for makeID (0.32 sec)
-
src/compress/bzip2/huffman.go
// We keep the codes packed into a uint32, at the most-significant end. // So branches are taken from the MSB downwards. This makes it easy to // sort them later. code := uint32(0) length := uint8(32) codes := make([]huffmanCode, len(lengths)) for i := len(pairs) - 1; i >= 0; i-- { if length > pairs[i].length { length = pairs[i].length } codes[i].code = code
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:44:37 UTC 2024 - 6.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/dryrun/dryrun.go
// Useful for things like loading a file from /tmp/ but saying to the user "Would write file foo to /etc/kubernetes/..." type FileToPrint struct { RealPath string PrintPath string } // NewFileToPrint makes a new instance of FileToPrint with the specified arguments func NewFileToPrint(realPath, printPath string) FileToPrint { return FileToPrint{ RealPath: realPath, PrintPath: printPath, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/copyelim.go
w.reset(OpUnknown) break } if advance { slow = slow.Args[0] } advance = !advance } // The answer is w. Update all the copies we saw // to point directly to w. Doing this update makes // sure that we don't end up doing O(n^2) work // for a chain of n copies. for v != w { x := v.Args[0] v.SetArg(0, w) v = x } return w }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:55:18 UTC 2024 - 3.5K bytes - Viewed (0) -
src/go/types/api_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/runtime/gc_test.go
}) } } func TestPeriodicGC(t *testing.T) { if runtime.GOARCH == "wasm" { t.Skip("no sysmon on wasm yet") } // Make sure we're not in the middle of a GC. runtime.GC() var ms1, ms2 runtime.MemStats runtime.ReadMemStats(&ms1) // Make periodic GC run continuously. orig := *runtime.ForceGCPeriod *runtime.ForceGCPeriod = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
src/runtime/tracebuf.go
} // end writes the buffer back into the m. func (w traceWriter) end() { if w.mp == nil { // Tolerate a nil mp. It makes code that creates traceWriters directly // less error-prone. return } w.mp.trace.buf[w.gen%2] = w.traceBuf } // ensure makes sure that at least maxSize bytes are available to write. // // Returns whether the buffer was flushed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesTest.groovy
def setup() { services = NativeServices.getInstance() } def "makes a ProcessEnvironment available"() { expect: services.get(ProcessEnvironment) != null } def "makes an OperatingSystem available"() { expect: services.get(OperatingSystem) != null } def "makes a FileSystem available"() { expect: services.get(FileSystem) != null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 10 01:29:49 UTC 2024 - 3.2K bytes - Viewed (0) -
src/internal/trace/internal/testgen/go122/trace.go
// creating complex traces that are mostly or completely correct. func (t *Trace) Generation(gen uint64) *Generation { g := &Generation{ trace: t, gen: gen, strings: make(map[string]uint64), stacks: make(map[stack]uint64), } t.gens = append(t.gens, g) return g } // Generate creates a test file for the trace. func (t *Trace) Generate() []byte { // Trace file contents.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
} if dir == "" { return "", false, fmt.Errorf("missing user-config dir") } return filepath.Join(dir, "go/env"), false, nil } func initEnvCache() { envCache.m = make(map[string]string) envCache.goroot = make(map[string]string) if file, _, _ := EnvFile(); file != "" { readEnvFile(file, "user") } goroot := findGOROOT(envCache.m["GOROOT"]) if goroot != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0)