Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 267 for SMALL (0.01 sec)

  1. src/test/java/jcifs/pac/PacTest.java

            // Any PACDecodingException is acceptable for this test
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testMalformedPac() {
            // Too small to be a valid PAC
            byte[] malformedData = new byte[] { 1, 0, 0, 0 };
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(malformedData, keys));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

     *
     * As bytes are returned from upstream they are written to a local file. Downstream sources read
     * from this file as necessary.
     *
     * This class also keeps a small buffer of bytes recently read from upstream. This is intended to
     * save a small amount of file I/O and data copying.
     */
    class Relay private constructor(
      /**
       * Read/write persistence of the upstream source and its metadata. Its layout is as follows:
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            // Validate minimum buffer size for SMB2 negotiate response
            if (buffer == null || buffer.length < bufferIndex + 65) {
                throw new SMBProtocolDecodingException("Buffer too small for SMB2 negotiate response (minimum 65 bytes required)");
            }
    
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 65) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            if (!isAlgorithmSupported(algorithm)) {
                throw new CIFSException("Unsupported compression algorithm: " + algorithm);
            }
            if (length < MIN_COMPRESSION_SIZE) {
                log.debug("Data too small for compression ({} bytes), returning uncompressed", length);
                byte[] result = new byte[length];
                System.arraycopy(data, offset, result, 0, length);
                return result;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test writeParametersWireFormat with small buffer throws ArrayIndexOutOfBoundsException")
        void testWriteParametersWireFormatSmallBuffer() {
            netShareEnum = new NetShareEnum(realConfig);
    
            // Buffer too small for the full parameters (need at least 19 bytes)
            byte[] dst = new byte[10];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

            ComponentUtil.setFessConfig(new MockFessConfig() {
                @Override
                public Integer getCookieSearchParameterMaxLengthAsInteger() {
                    return 10; // Very small limit
                }
            });
    
            String longValue = "a".repeat(1000);
            getMockRequest().setParameter("q", longValue);
    
            searchHelper.storeSearchParameters();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            // Reserved (2 bytes, LE) == 0
            assertEquals(0, SMBUtil.readInt2(buf, offset + 2));
        }
    
        @Test
        @DisplayName("writeBytesWireFormat throws when buffer too small")
        void writeBytesWireFormat_throwsIfInsufficientSpace() {
            // Arrange
            Smb2LogoffRequest req = newRequest();
            byte[] tiny = new byte[3]; // less than 4 bytes available
    
            // Act/Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/score/LtrQueryRescorerTest.java

            }
        }
    
        public void test_evaluate_withDifferentWindowSizes() {
            // Test with different window sizes
            final String testModelName = "test_model";
    
            // Test with small window size
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                @Override
                public String getLtrModelName() {
                    return testModelName;
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileInputStream.java

                            }
                        }
                    } catch (final SmbException se) {
                        // Ignore errors on the final small read - we already got substantial data
                        log.trace("Final small read failed, ignoring", se);
                    }
                }
    
                return (int) (this.fp - start);
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

        Random random = new Random();
    
        int sizeRemaining = size;
    
        // TODO(kevinb): generate better test contents for multisets
        while (sizeRemaining > 0) {
          // The JVM will return interned values for small ints.
          Integer value = random.nextInt(1000) + 128;
          int count = min(random.nextInt(10) + 1, sizeRemaining);
          sizeRemaining -= count;
          hashMultiset.add(value, count);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top