Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 248 for zeros (0.38 sec)

  1. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

        }
    
        // Supplies a range of normal and edge case values.
        private static Stream<Arguments> valueProvider() {
            return Stream.of(Arguments.of(0, 0L, 0L, 0L, 0L), // all zeros
                    Arguments.of(1, 1L, 1L, 1L, 1L), // ones
                    Arguments.of(123, 456L, 789L, 101112L, 131415L), // arbitrary positives
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            SMBUtil.writeInt4(104, buffer, 8); // NextEntryOffset to second entry
            SMBUtil.writeInt4(0, buffer, 12); // FileIndex
            // ... rest of first entry fields (zeros for simplicity)
            for (int i = 16; i < 102; i++) {
                buffer[i] = 0;
            }
            SMBUtil.writeInt4(8, buffer, 68); // FileNameLength at offset 60 from start
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        }
    
        @Test
        @DisplayName("Should handle null file ID gracefully")
        void testNullFileId() {
            // Given
            byte[] nullFileId = new byte[16]; // All zeros
            Configuration config = mock(Configuration.class);
            when(config.getNotifyBufferSize()).thenReturn(8192);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmUtilTest.java

            assertArrayEquals(clientChallenge, Arrays.copyOfRange(resp, 16, 24), "Client challenge must be copied to last 8 bytes");
            assertFalse(Arrays.equals(new byte[24], resp), "Response must not be all zeros");
        }
    
        @Test
        @DisplayName("getLMv2Response(byte[]): empty client data allowed")
        void testGetLMv2Response_bytes_emptyClientData() {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (1)
  5. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
                for (int i = 0; i < 20; i++) {
                    buf.enc_ndr_small(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            byte[] buffer = new byte[100];
            // Initialize buffer with zeros to avoid random data
            java.util.Arrays.fill(buffer, (byte) 0);
    
            // Set dataCount to 0 - but decode still runs
            setDataCount(response, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += this.info.encode(dst, dstIndex);
    
            /* 6 zeros observed with NT */
            SMBUtil.writeInt8(0L, dst, dstIndex);
            dstIndex += 6;
    
            /*
             * Also observed 4 byte alignment but we stick
             * with the default for jCIFS which is 2
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

        }
    
        @Test
        @DisplayName("Test getCapacity with zero values")
        void testGetCapacityWithZeroValues() throws SMBProtocolDecodingException {
            // Prepare test data with zeros
            byte[] buffer = new byte[22];
    
            // All zeros
            for (int i = 0; i < buffer.length; i++) {
                buffer[i] = 0;
            }
    
            // Decode
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            SMBUtil.writeInt2(0x0302, buffer, 4);
    
            // Negotiate context count (0 for non-3.1.1)
            SMBUtil.writeInt2(0, buffer, 6);
    
            // Server GUID (16 bytes of zeros)
            // Already initialized to zeros
    
            // Capabilities
            SMBUtil.writeInt4(Smb2Constants.SMB2_GLOBAL_CAP_DFS, buffer, 24);
    
            // Max sizes (reasonable values)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

            // Normalize each part (remove leading zeros)
            final String[] normalized = new String[8];
            for (int i = 0; i < 8; i++) {
                normalized[i] = parts[i].replaceFirst("^0+(?!$)", "");
                if (normalized[i].isEmpty()) {
                    normalized[i] = "0";
                }
            }
    
            // Find longest sequence of consecutive zeros
            int longestStart = -1;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 06 08:31:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top