Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for chunkSize (0.05 sec)

  1. src/archive/zip/zip_test.go

    	const chunkSize = 1024
    	chunks := int(size / chunkSize)
    	// write size bytes plus "END\n" to a zip file
    	buf := new(rleBuffer)
    	w := NewWriter(buf)
    	f, err := w.CreateHeader(&FileHeader{
    		Name:   "huge.txt",
    		Method: Store,
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	f.(*fileWriter).crc32 = fakeHash32{}
    	chunk := make([]byte, chunkSize)
    	for i := range chunk {
    		chunk[i] = '.'
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

            val bytesOut = Buffer()
            while (!body.exhausted()) {
              val chunkSize = minOf(body.size, maxChunkSize.toLong())
              bytesOut.writeHexadecimalUnsignedLong(chunkSize)
              bytesOut.writeUtf8("\r\n")
              bytesOut.write(body, chunkSize)
              bytesOut.writeUtf8("\r\n")
            }
            bytesOut.writeUtf8("0\r\n") // Last chunk. Trailers follow!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              }
    
              chunked -> {
                chunkSizes = mutableListOf()
                hasBody = true
                while (true) {
                  val chunkSize =
                    socket.source
                      .readUtf8LineStrict()
                      .trim()
                      .toInt(16)
                  if (chunkSize == 0) {
                    readEmptyLine(socket.source)
                    break
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  4. docs/smb3-features/03-multi-channel-design.md

        
        int chunkSize = length / channelCount;
        List<CompletableFuture<Void>> futures = new ArrayList<>();
        
        for (int i = 0; i < channelCount; i++) {
            final int chunkOffset = i * chunkSize;
            final int chunkLength = (i == channelCount - 1) ? 
                length - chunkOffset : chunkSize;
            final ChannelInfo channel = channels.get(i);
            
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // Verify second chunk
                chunkStart += CHUNK_SIZE;
                assertEquals(400L, SMBUtil.readInt8(buffer, chunkStart));
                assertEquals(500L, SMBUtil.readInt8(buffer, chunkStart + 8));
                assertEquals(600, SMBUtil.readInt4(buffer, chunkStart + 16));
    
                // Verify third chunk
                chunkStart += CHUNK_SIZE;
                assertEquals(700L, SMBUtil.readInt8(buffer, chunkStart));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        }
      }
    
      @Override
      public HashCode hashBytes(byte[] input, int off, int len) {
        checkPositionIndexes(off, off + len, input.length);
        int h1 = seed;
        int i;
        for (i = 0; i + CHUNK_SIZE <= len; i += CHUNK_SIZE) {
          int k1 = mixK1(getIntLittleEndian(input, off + i));
          h1 = mixH1(h1, k1);
        }
    
        int k1 = 0;
        for (int shift = 0; i < len; i++, shift += 8) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        }
      }
    
      @Override
      public HashCode hashBytes(byte[] input, int off, int len) {
        checkPositionIndexes(off, off + len, input.length);
        int h1 = seed;
        int i;
        for (i = 0; i + CHUNK_SIZE <= len; i += CHUNK_SIZE) {
          int k1 = mixK1(getIntLittleEndian(input, off + i));
          h1 = mixH1(h1, k1);
        }
    
        int k1 = 0;
        for (int shift = 0; i < len; i++, shift += 8) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        var path: String? = recordedRequest.path
        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int>? = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
        var utf8Body: String = recordedRequest.body.readUtf8()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. CHANGELOG.md

     *  Breaking: `RecordedRequest.body` is now nullable. Null is used when the request does not have a
        body.
    
     *  Breaking: `RecordedRequest.chunkSizes` is now nullable. Null is used when the request does not
        use chunked encoding. This is different from an empty list - that indicates the request is
        chunked but has no data.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (2)
Back to top