Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for chunk (0.14 sec)

  1. cmd/streaming-signature-v4.go

    // lineTooLong is generated as chunk header is bigger than 4KiB.
    var errLineTooLong = errors.New("header line too long")
    
    // malformed encoding is generated when chunk header is wrongly formed.
    var errMalformedEncoding = errors.New("malformed chunked encoding")
    
    // chunk is considered too big if its bigger than > 16MiB.
    var errChunkTooBig = errors.New("chunk too big: choose chunk size <= 16MiB")
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

      while (offset < size && rc > 0) {
        size_t chunk = size - offset;
        if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize;
    
        rc = read(src_fd, buffer.get(), chunk);
        if (rc < 0) return -1;
    
        int total_write = 0;
        int total_read = rc;
        while (total_write < total_read && rc > 0) {
          rc = write(dst_fd, buffer.get() + total_write, chunk - total_write);
          if (rc < 0) return -1;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  3. docs/security/README.md

    ##### Figure 1 - Secure Channel construction
    
    ```
    plaintext   := chunk_0          ||       chunk_1          ||       chunk_2          ||       ...
                     |                         |                         |
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Feb 12 00:51:25 GMT 2022
    - 13.8K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    		_, err := f.Write(chunk)
    		if err != nil {
    			t.Fatal("write chunk:", err)
    		}
    	}
    	if frag := int(size % chunkSize); frag > 0 {
    		_, err := f.Write(chunk[:frag])
    		if err != nil {
    			t.Fatal("write chunk:", err)
    		}
    	}
    	end := []byte("END\n")
    	_, err = f.Write(end)
    	if err != nil {
    		t.Fatal("write end:", err)
    	}
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  5. 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));
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  6. 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.
    		{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  7. docs/extensions/s3zip/examples/aws-js/main.js

    s3.getObject({Bucket: 'your-bucket', Key: 'path/to/file.zip/data.csv'}).
        on('build', function(req) { req.httpRequest.headers['X-Minio-Extract'] = 'true'; }).
        on('httpData', function(chunk) { file.write(chunk); }).
        on('httpDone', function() { file.end(); }).
    JavaScript
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jun 10 15:17:03 GMT 2021
    - 1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

       * Computes a hash code based on the data that have been provided to this hasher. This is called
       * after all chunks are handled with {@link #process} and any leftover bytes that did not make a
       * complete chunk are handled with {@link #processRemaining}.
       */
      protected abstract HashCode makeHash();
    
      // Process pent-up data in chunks
      private void munchIfFull() {
        if (buffer.remaining() < 8) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/SipHashFunction.java

        // The number of bytes in the input.
        private long b = 0;
    
        // The final 64-bit chunk includes the last 0 through 7 bytes of m followed by null bytes
        // and ending with a byte encoding the positive integer b mod 256.
        private long finalM = 0;
    
        SipHasher(int c, int d, long k0, long k1) {
          super(CHUNK_SIZE);
          this.c = c;
          this.d = d;
          this.v0 ^= k0;
          this.v1 ^= k1;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.3K bytes
    - Viewed (0)
  10. 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));
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
Back to top