Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 150 for calculating (0.07 seconds)

  1. internal/hash/reader.go

    // simply converts positional arguments to NewReader() into a
    // more flexible way to provide optional inputs. This is currently
    // used by the FanOut API call mostly to disable expensive md5sum
    // calculation repeatedly under hash.Reader.
    type Options struct {
    	MD5Hex     string
    	SHA256Hex  string
    	Size       int64
    	ActualSize int64
    	DisableMD5 bool
    	ForceMD5   []byte
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

                int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH;
                assertEquals(sessionId, SMBUtil.readInt8(buffer, bodyOffset + 16));
            }
        }
    
        @Test
        @DisplayName("Should verify padding calculation")
        void testPaddingCalculation() throws Exception {
            // Given - Create request with token
            byte[] token = new byte[5]; // Non-8-aligned size
            Smb2SessionSetupRequest req =
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  3. cmd/signature-v4-utils_test.go

    		{"X-Amz-Content-Sha256", unsignedPayload, "", "", true},
    
    		// Test case - 7.
    		// "X-Amz-Content-Sha256" not set and  PreSigned Signature v4 not enabled, sha256 checksum calculation is not skipped.
    		{"", "", "X-Amz-Credential", "", true},
    
    		// Test case - 8.
    		// "X-Amz-Content-Sha256" has a proper value cannot skip.
    		{"X-Amz-Content-Sha256", "somevalue", "", "", false},
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            void testVariousOffsets(long offset) {
                assertDoesNotThrow(() -> request.setOffset(offset));
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly")
            void testSize() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_indexes_largeVarargs_compute_doubleCollection() {
        int scale = Integer.MAX_VALUE;
        int otherIndex = (Integer.MAX_VALUE - 1) / 3; // this divides exactly
        // For the otherIndex calculation, we have q=Integer.MAX_VALUE, k=(Integer.MAX_VALUE-1)/3, and
        // N=16. Therefore k*(N-1)/q = 5-5/Integer.MAX_VALUE, which has floor 4 and fractional part
        // (1-5/Integer.MAX_VALUE).
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 29.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_indexes_largeVarargs_compute_doubleCollection() {
        int scale = Integer.MAX_VALUE;
        int otherIndex = (Integer.MAX_VALUE - 1) / 3; // this divides exactly
        // For the otherIndex calculation, we have q=Integer.MAX_VALUE, k=(Integer.MAX_VALUE-1)/3, and
        // N=16. Therefore k*(N-1)/q = 5-5/Integer.MAX_VALUE, which has floor 4 and fractional part
        // (1-5/Integer.MAX_VALUE).
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 29.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            void testVariousRemainingBytes(int remaining) {
                assertDoesNotThrow(() -> request.setRemainingBytes(remaining));
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly with no data")
            void testSizeWithNoData() {
                request.setData(new byte[0], 0, 0);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Even with -1, the do-while loop executes at least once due to the bug
            assertEquals(1, response.getResults().length);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with offset calculation")
        void testReadBytesWireFormatOffsetCalculation() throws Exception {
            response = new Smb2QueryDirectoryResponse(mockConfig, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  9. RELEASE.md

        `MemoryAllocation::MemoryAllocation()`.
    *   Extracts `NNAPIDelegateKernel` from nnapi_delegate.cc
    *   Added support for `FusedBatchNormV3` in converter.
    *   A ragged to dense op for directly calculating tensors.
    *   Fix accidental quadratic graph construction cost in graph-mode
        `tf.gradients()`.
    
    ## Thanks to our Contributors
    
    This release contains contributions from many people at Google, as well as:
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Tue Oct 28 22:27:41 GMT 2025
    - 740.4K bytes
    - Click Count (3)
  10. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                String result = testBlock.readString(buffer, 0);
    
                assertEquals("Test", result);
            }
    
            @Test
            @DisplayName("Test string wire length calculation")
            void testStringWireLength() {
                testBlock.setUseUnicode(false);
                assertEquals(5, testBlock.stringWireLength("Test", 0));
    
                testBlock.setUseUnicode(true);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
Back to Top