- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 72 for PutBytes (0.25 sec)
-
src/cmd/go/internal/cache/cache.go
return out, size, err } // Add to cache index. return out, size, c.putIndexEntry(id, out, size, allowVerify) } // PutBytes stores the given bytes in the cache as the output for the action ID. func PutBytes(c Cache, id ActionID, data []byte) error { _, _, err := c.Put(id, bytes.NewReader(data)) return err } // copyFile copies file into the cache, expecting it to have the given
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 20.3K bytes - Viewed (0) -
cmd/server_test.go
buffer.WriteString(data) } // String content which is used for put object range test. putBytes := buffer.Bytes() putBytes = putBytes[:randInt] // randomize the order of bytes in the byte array and create a reader. putBytes = randomizeBytes(putBytes, -1) buf := bytes.NewReader(putBytes) putContent := string(putBytes) objectName := "test-big-file" // HTTP request to upload the object.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 115.3K bytes - Viewed (0) -
src/cmd/go/internal/work/buildid.go
} if cfg.BuildN { return nil } } c := cache.Default() // Cache output from compile/link, even if we don't do the rest. switch a.Mode { case "build": cache.PutBytes(c, cache.Subkey(a.actionID, "stdout"), a.output) case "link": // Even though we don't cache the binary, cache the linker text output. // We might notice that an installed binary is up-to-date but still
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:31:25 UTC 2024 - 26.2K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
// the index because the module hasn't been indexed yet. data, err = indexModule(modroot) if err != nil { return nil, err } if err = cache.PutBytes(cache.Default(), id, data); err != nil { return nil, err } } mi, err := fromBytes(modroot, data) if err != nil { return nil, err } return mi, nil }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
continue } name := file[len(a.Objdir):] buf.WriteString(name) buf.WriteString("\n") if err := b.cacheObjdirFile(a, c, name); err != nil { return } } cache.PutBytes(c, cache.Subkey(a.actionID, "srcfiles"), buf.Bytes()) } func (b *Builder) loadCachedVet(a *Action) error { c := cache.Default() list, _, err := cache.GetBytes(c, cache.Subkey(a.actionID, "srcfiles"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
cmd/kubeadm/app/util/initsystem/initsystem_unix.go
args := []string{service, "status"} outBytes, _ := exec.Command("rc-service", args...).CombinedOutput() return !strings.Contains(string(outBytes), "does not exist") } // ServiceIsEnabled ensures the service is enabled to start on each boot. func (openrc OpenRCInitSystem) ServiceIsEnabled(service string) bool { args := []string{"show", "default"} outBytes, _ := exec.Command("rc-update", args...).Output()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 03:15:07 UTC 2023 - 5.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/template_test.go
}, } for _, tt := range tmplTests { t.Run(tt.name, func(t *testing.T) { outbytes, err := ParseTemplate(tt.template, tt.data) if tt.errExpected != (err != nil) { t.Errorf( "failed TestParseTemplate:\n\texpected err: %t\n\t actual: %s", tt.errExpected, err, ) } if tt.output != string(outbytes) { t.Errorf( "failed TestParseTemplate:\n\texpected bytes: %s\n\t actual: %s",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 07:02:51 UTC 2024 - 2.3K bytes - Viewed (0) -
pilot/pkg/status/distribution/report_test.go
InProgressResources: map[string]int{ (&status.Resource{ Name: "water", Namespace: "default", }).String(): 1, }, } outbytes, err := yaml.Marshal(in) RegisterTestingT(t) Expect(err).To(BeNil()) out := Report{} err = yaml.Unmarshal(outbytes, &out) Expect(err).To(BeNil()) if !reflect.DeepEqual(out, in) { t.Errorf("Report Serialization mutated the Report. got = %v, want %v", out, in) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt
end = nextOutFrame.start truncated = false } else { end = outBytes.size.toLong() truncated = nextOutFrame.truncated } // Write a frame. val length = (end - start).toInt() outputStream.write(outBytes, start.toInt(), length) // If the last frame was truncated, immediately close the connection. if (truncated) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 8.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/DES.java
public static void spreadIntsToBytes( int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen ) { for ( int i = 0; i < intLen; ++i ) { outBytes[outOff + i * 4 ] = (byte) ( inInts[inOff + i] >>> 24 ); outBytes[outOff + i * 4 + 1] = (byte) ( inInts[inOff + i] >>> 16 ); outBytes[outOff + i * 4 + 2] = (byte) ( inInts[inOff + i] >>> 8 );
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 21.4K bytes - Viewed (0)