Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for truncation (0.07 sec)

  1. src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java

    /**
     * File System Control Code (FSCC) structure for File End-of-File Information.
     * Used in SMB2/SMB3 operations to set or query the end-of-file position for a file,
     * effectively controlling file size truncation or extension.
     *
     * @author mbechler
     */
    public class FileEndOfFileInformation implements FileInformation, Encodable {
    
        private long endOfFile;
    
        /**
         * Default constructor for decoding.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    		{"test-bucket-list-object", "/obj", "", "", 0, ListObjectsInfo{}, nil, true},
    		// Testing with prefix and truncation (29-30).
    		{"test-bucket-list-object", "new", "", "", 1, resultCases[7], nil, true},
    		{"test-bucket-list-object", "obj", "", "", 2, resultCases[8], nil, true},
    		// Testing with marker, but without prefix and truncation (31-35).
    		{"test-bucket-list-object", "", "newPrefix0", "", 6, resultCases[9], nil, true},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 76.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/InputValidatorTest.java

            assertEquals("teststring", InputValidator.sanitizeForLogging("test\rstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\tstring"));
    
            // Test long string truncation
            String longString = "a".repeat(1100);
            String sanitized = InputValidator.sanitizeForLogging(longString);
            assertEquals(1000, sanitized.length());
            assertTrue(sanitized.endsWith("..."));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            SMBUtil.writeInt2(128, buffer, 56); // Security buffer offset
            // writeInt2(100000) will truncate to 100000 & 0xFFFF = 34464
            SMBUtil.writeInt2(100000, buffer, 58); // This becomes 34464 due to 16-bit truncation
    
            // Since 34464 is within the 16-bit range but could still be considered excessive for security buffer,
            // let's test the actual validation logic instead
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                            new Trans2SetFileInformationResponse(th.getConfig()), RequestParam.NO_RETRY);
                } else {
                    // this is the original, COM_WRITE allows truncation but no 64 bit offsets
                    final SmbComWriteResponse rsp = new SmbComWriteResponse(th.getConfig());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

                    eq(RequestParam.NO_RETRY));
        }
    
        @Test
        @DisplayName("setLength(): legacy path uses SmbComWrite for truncation")
        void setLength_legacy_usesComWrite() throws Exception {
            SmbRandomAccessFile raf = newInstance("rw", false, false, false);
            SmbFileHandleImpl fh = (SmbFileHandleImpl) getField(raf, "handle");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/IntMathTest.java

            // The BigInteger implementation is tested separately, use it as the reference.
            // Promote the int value (rather than using intValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

        for (long x : POSITIVE_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
            // Promote the long value (rather than using longValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(long, FLOOR). */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilter.java

       */
      @VisibleForTesting
      static int optimalNumOfHashFunctions(double p) {
        // -log(p) / log(2), ensuring the result is rounded to avoid truncation.
        return max(1, (int) Math.round(-Math.log(p) / LOG_TWO));
      }
    
      /**
       * Computes m (total bits of Bloom filter) which is expected to achieve, for the specified
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. cmd/object-api-multipart_test.go

    				},
    			},
    		},
    		// listMultipartResults - 21.
    		// Testing for listing of 3 uploadID's for a given object, setting maxKeys to be 3.
    		// There are 3 MultipartInfo in the result (uploadIDs[1-3]), hence no truncation is expected.
    		// Since all the MultipartInfo is listed, expecting no values for NextUploadIDMarker and NextKeyMarker.
    		// Will be used to list on bucketNames[1].
    		{
    			MaxUploads:  3,
    			IsTruncated: false,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 89.4K bytes
    - Viewed (0)
Back to top