Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 773 for zeros (0.96 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            assertNotNull(result);
            assertTrue(result.startsWith("NtTransQuerySecurityResponse["));
            assertTrue(result.endsWith("]"));
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat with zero nextEntryOffset stops iteration")
        void testReadParametersWireFormatZeroNextEntryOffset() throws Exception {
            ByteBuffer buffer = ByteBuffer.allocate(200);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

                        log.debug(Hexdump.toHexString(buffer, bufferIndex, len));
                    }
                    throw new RuntimeCIFSException("zero termination not found");
                }
            }
            return len;
        }
    
        /**
         * Decodes a string from OEM-encoded bytes.
         *
         * @param src the byte array containing the encoded string
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            int result = request.size();
    
            // Then
            assertEquals(expectedSize, result);
            verify(request, times(1)).size();
        }
    
        @Test
        @DisplayName("Test size returns zero for empty message")
        void testSizeReturnsZero() {
            // Given
            when(request.size()).thenReturn(0);
    
            // When
            int result = request.size();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

        }
    
        @Test
        public void hasMoreElements_errorCodeNonZero_returnsFalse() {
            DummyResponse d = new DummyResponse();
            d.setErrorCode(123); // non-zero error
            assertFalse(d.hasMoreElements(), "errorCode non-zero overrides hasMore flag");
        }
    
        @Test
        public void nextElement_firstCall_flipsIsPrimary() {
            DummyResponse d = new DummyResponse();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/EvictingQueue.java

       *
       * <p>When {@code maxSize} is zero, elements will be evicted immediately after being added to the
       * queue.
       */
      public static <E> EvictingQueue<E> create(int maxSize) {
        return new EvictingQueue<>(maxSize);
      }
    
      /**
       * Returns the number of additional elements that this queue can accept without evicting; zero if
       * the queue is currently full.
       *
       * @since 16.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/DoubleUtils.java

        long bits = (long) (exponent + EXPONENT_BIAS) << SIGNIFICAND_BITS;
        bits += signifRounded;
        /*
         * If signifRounded == 2^53, we'd need to set all of the significand bits to zero and add 1 to
         * the exponent. This is exactly the behavior we get from just adding signifRounded to bits
         * directly. If the exponent is MAX_DOUBLE_EXPONENT, we round up (correctly) to
         * Double.POSITIVE_INFINITY.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/ntlmssp/NtlmFlags.java

         * signing and sealing authenticated communication.
         */
        int NTLMSSP_NEGOTIATE_LM_KEY = 0x00000080;
    
        /**
         * ??? According to spec this is a reserved bit and must be set to zero
         */
        int NTLMSSP_NEGOTIATE_NETWARE = 0x00000100;
    
        /**
         * Indicates support for NTLM authentication.
         */
        int NTLMSSP_NEGOTIATE_NTLM = 0x00000200;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. utils/utils_test.go

    			trimLen:  3,
    			expected: []int{},
    		},
    		{
    			name:     "Trim length greater than slice length",
    			input:    []int{1, 2, 3},
    			trimLen:  5,
    			expected: []int{},
    		},
    		{
    			name:     "Zero trim length",
    			input:    []int{1, 2, 3},
    			trimLen:  0,
    			expected: []int{1, 2, 3},
    		},
    		{
    			name:     "Trim one element from end",
    			input:    []int{1, 2, 3},
    			trimLen:  1,
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(0, result);
    
            // Test with different parameters
            result = response.readSetupWireFormat(buffer, 10, 50);
            assertEquals(0, result);
    
            // Test with zero length
            result = response.readSetupWireFormat(buffer, 0, 0);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat returns 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            for (int i = 0; i < 24; i++) {
                assertEquals((byte) (i + 1), resumeKey[i], "Resume key byte " + i + " should match");
            }
        }
    
        @Test
        @DisplayName("Test decode with non-zero buffer offset")
        void testDecodeWithOffset() throws SMBProtocolDecodingException {
            // Prepare test data with offset
            byte[] buffer = new byte[100];
            int offset = 50;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top