- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 296 for chunkOf (0.2 sec)
-
src/cmd/go/internal/modindex/build.go
srcdir = filepath.ToSlash(srcdir) chunks := strings.Split(str, "${SRCDIR}") if len(chunks) < 2 { return str, safeCgoName(str) } ok := true for _, chunk := range chunks { ok = ok && (chunk == "" || safeCgoName(chunk)) } ok = ok && (srcdir == "" || safeCgoName(srcdir)) res := strings.Join(chunks, srcdir) return res, ok && res != "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/internal/saferio/io.go
return nil, io.ErrUnexpectedEOF } if n < chunk { buf := make([]byte, n) _, err := io.ReadFull(r, buf) if err != nil { return nil, err } return buf, nil } var buf []byte buf1 := make([]byte, chunk) for n > 0 { next := n if next > chunk { next = chunk } _, err := io.ReadFull(r, buf1[:next]) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.4K bytes - Viewed (0) -
src/runtime/mgcscavenge_test.go
// // Tests are then organized into test cases which mark some pages as // scavenge-able then try to find them. Tests expect that the initial // state of the scavengeIndex has all of the chunks as dense in the last // generation and empty to the scavenger. // // There are a few additional tests that interleave mark and find operations, // so they're defined separately, but use the same infrastructure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersTest.kt
val headers1 = Headers.Builder() .add("Connection", "close") .add("Transfer-Encoding", "chunked") .build() val headers2 = Headers.Builder() .add("Connection", "close") .add("Transfer-Encoding", "chunked") .build() assertThat(headers2).isEqualTo(headers1) assertThat(headers2.hashCode()).isEqualTo(headers1.hashCode()) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyDownloadBuildOperationsIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Jan 14 00:59:27 UTC 2024 - 13K bytes - Viewed (0) -
src/internal/poll/writev.go
var err error for len(*v) > 0 { iovecs = iovecs[:0] for _, chunk := range *v { if len(chunk) == 0 { continue } iovecs = append(iovecs, newIovecWithBase(&chunk[0])) if fd.IsStream && len(chunk) > 1<<30 { iovecs[len(iovecs)-1].SetLen(1 << 30) break // continue chunk on next writev } iovecs[len(iovecs)-1].SetLen(len(chunk)) if len(iovecs) == maxVec { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/transform_test.go
offset := rand.Intn(chunkWords) err := lockedfile.Transform(path, func(data []byte) (chunk []byte, err error) { chunk = buf[offset*8 : (offset+chunkWords)*8] if len(data)&^7 != len(data) { t.Errorf("read %d bytes, but each write is an integer multiple of 8 bytes", len(data)) return chunk, nil } words := len(data) / 8 if !isPowerOf2(words) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 22:37:50 UTC 2023 - 2.3K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8.go
} used := byteorder.BeUint64(data[1*8:]) if used > (ctrMax/ctrInc)*chunk-reseed { return new(errUnmarshalChaCha8) } for i := range s.seed { s.seed[i] = byteorder.LeUint64(data[(2+i)*8:]) } s.c = ctrInc * (uint32(used) / chunk) block(&s.seed, &s.buf, s.c) s.i = uint32(used) % chunk s.n = chunk if s.c == ctrMax-ctrInc { s.n = chunk - reseed } return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:47:29 UTC 2024 - 4.4K bytes - Viewed (0) -
src/crypto/sha256/sha256.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:50:58 UTC 2024 - 5.7K bytes - Viewed (0) -
src/internal/saferio/io_test.go
} }) t.Run("small-EOF", func(t *testing.T) { _, err := ReadData(bytes.NewReader(nil), chunk-1) if err != io.EOF { t.Errorf("ReadData = %v, want io.EOF", err) } }) t.Run("large-EOF", func(t *testing.T) { _, err := ReadData(bytes.NewReader(nil), chunk+1) if err != io.EOF { t.Errorf("ReadData = %v, want io.EOF", err) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.1K bytes - Viewed (0)