- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 366 for chunkOf (0.15 sec)
-
src/net/writev_test.go
writeLog.log = append(writeLog.log, size) writeLog.Unlock() } var want bytes.Buffer for i := 0; i < chunks; i++ { want.WriteByte(byte(i)) } withTCPConnPair(t, func(c *TCPConn) error { buffers := make(Buffers, chunks) for i := range buffers { buffers[i] = want.Bytes()[i : i+1] } var n int64 var err error if useCopy { n, err = io.Copy(c, &buffers) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/BaseEncoding.java
for (int remaining = len; remaining >= 3; remaining -= 3) { int chunk = (bytes[i++] & 0xFF) << 16 | (bytes[i++] & 0xFF) << 8 | bytes[i++] & 0xFF; target.append(alphabet.encode(chunk >>> 18)); target.append(alphabet.encode((chunk >>> 12) & 0x3F)); target.append(alphabet.encode((chunk >>> 6) & 0x3F)); target.append(alphabet.encode(chunk & 0x3F)); } if (i < off + len) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Mar 15 16:33:32 UTC 2024 - 41.7K bytes - Viewed (0) -
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/path/filepath/match.go
match := false nrange := 0 for { if len(chunk) > 0 && chunk[0] == ']' && nrange > 0 { chunk = chunk[1:] break } var lo, hi rune if lo, chunk, err = getEsc(chunk); err != nil { return "", false, err } hi = lo if chunk[0] == '-' { if hi, chunk, err = getEsc(chunk[1:]); err != nil { return "", false, err } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
} }); for (int chunk : CHUNK_SIZES) { chunk = Math.max(1, Math.min(chunk, input.length())); assertEquals(expectProcess, bufferHelper(input, chunk)); assertEquals(expectRead, readUsingJava(input, chunk)); assertEquals(expectRead, readUsingReader(input, chunk, true)); assertEquals(expectRead, readUsingReader(input, chunk, false)); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
} }); for (int chunk : CHUNK_SIZES) { chunk = Math.max(1, Math.min(chunk, input.length())); assertEquals(expectProcess, bufferHelper(input, chunk)); assertEquals(expectRead, readUsingJava(input, chunk)); assertEquals(expectRead, readUsingReader(input, chunk, true)); assertEquals(expectRead, readUsingReader(input, chunk, false)); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.7K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
}, // Test - 2 no chunk extension, return same buffer. { []byte("10000;"), []byte("10000;"), nil, }, // Test - 3 no chunk size, return error. { []byte(";chunk-signature="), nil, nil, }, // Test - 4 removes trailing slash. {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 5.7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 22 21:23:55 UTC 2019 - 1.5K 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)