Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,929 for Length (0.38 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            // Verify size
            assertEquals(24 + 2 * manyDialects.length, encodedLength);
    
            // Verify dialect count
            assertEquals(manyDialects.length, SMBUtil.readInt2(buffer, 22));
    
            // Verify all dialects
            for (int i = 0; i < manyDialects.length; i++) {
                assertEquals(manyDialects[i], SMBUtil.readInt2(buffer, 24 + i * 2));
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

            assertTrue(DosError.DOS_ERROR_CODES.length > 0, "DOS_ERROR_CODES should contain at least one mapping");
        }
    
        @Test
        @DisplayName("Each error code mapping contains exactly two ints")
        void testEachPairLength() {
            for (int i = 0; i < DosError.DOS_ERROR_CODES.length; i++) {
                int[] pair = DosError.DOS_ERROR_CODES[i];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

        }
    
        /**
         * Returns the length of data in the buffer.
         *
         * @return the data length
         */
        public int getLength() {
            return this.deferred.length;
        }
    
        /**
         * Sets the length of data in the buffer.
         *
         * @param length the new data length
         */
        public void setLength(final int length) {
            this.deferred.length = length;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

                sd.decode(buffer, 0, buffer.length);
    
                if (aceCount > 0) {
                    assertNotNull(sd.getAces());
                    assertEquals(aceCount, sd.getAces().length);
                } else {
                    // When DACL header exists with 0 ACEs, we get an empty array
                    assertNotNull(sd.getAces());
                    assertEquals(0, sd.getAces().length);
                }
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/CurlResponseTest.java

            headers.put("Content-Length", Arrays.asList("100"));
    
            response.setHeaders(headers);
    
            Map<String, List<String>> result = response.getHeaders();
            assertNotNull(result);
            // Headers should be stored in lowercase
            assertTrue(result.containsKey("content-type"));
            assertTrue(result.containsKey("content-length"));
        }
    
        @Test
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

            // Verify num_sids
            assertEquals(2, lsarSidArrayX.num_sids, "num_sids should match the array length");
    
            // Verify sids array and its contents
            assertNotNull(lsarSidArrayX.sids, "sids array should not be null");
            assertEquals(2, lsarSidArrayX.sids.length, "sids array length should match");
            assertEquals(sidT1, lsarSidArrayX.sids[0].sid, "First SID should be unwrapped correctly");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Set buffer length (empty directory)
            SMBUtil.writeInt4(0, buffer, bufferIndex + 4);
    
            // Mock getHeaderStart
            response = spy(response);
            when(response.getHeaderStart()).thenReturn(0);
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertEquals(8, result); // Structure size (2) + offset (2) + length (4)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

            int offset = 50;
            byte[] infoData = createMockFileBasicInfoBuffer();
            System.arraycopy(infoData, 0, buffer, offset, infoData.length);
            response.setDataCount(infoData.length);
    
            int bytesRead = response.readDataWireFormat(buffer, offset, buffer.length - offset);
    
            assertTrue(bytesRead > 0);
            assertNotNull(response.getInfo());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                long offset = 1024L;
                long length = 2048L;
                int flags = Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK;
    
                lock = new Smb2Lock(offset, length, flags);
    
                assertNotNull(lock);
            }
    
            @Test
            @DisplayName("Should create lock with zero offset and length")
            void testConstructorWithZeroValues() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lock/Smb2Lock.java

            this.offset = offset;
            this.length = length;
            this.flags = flags;
    
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#size()
         */
        @Override
        public int size() {
            return 24;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top