Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 92 for 0x7fffffffL (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            byte[] buffer = new byte[256];
            long overflowSize = 0xFFFFFFFFL; // This will become -1 as signed int
    
            SMBUtil.writeInt2(0, buffer, 0);
            SMBUtil.writeUTime(0, buffer, 2);
            SMBUtil.writeInt4(overflowSize, buffer, 6);
    
            response.readParameterWordsWireFormat(buffer, 0);
    
            // 0xFFFFFFFF becomes -1 when interpreted as signed int
            assertEquals(-1L, response.getSize());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

                    new ValidateNegotiateInfoRequest(0xFFFFFFFF, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            byte[] buffer = new byte[request.size()];
            request.encode(buffer, 0);
    
            // Verify max capabilities value (comparing as unsigned long)
            assertEquals(0xFFFFFFFFL, SMBUtil.readInt4(buffer, 0) & 0xFFFFFFFFL);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

                    Arguments.of(0x12345678, new byte[] { 0x78, 0x56, 0x34, 0x12 }),
                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
        @ParameterizedTest
        @MethodSource("int32Provider")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            }
    
            @ParameterizedTest
            @DisplayName("Should encode consistently with various flag values")
            @ValueSource(ints = { 0, 1, 2, 4, 16, 0xFF, 0xFFFF, 0xFFFFFF, 0x7FFFFFFF, -1 })
            void testEncodingWithVariousFlags(int flags) {
                lock = new Smb2Lock(1024L, 2048L, flags);
                int encoded = lock.encode(buffer, 0);
    
                assertEquals(24, encoded);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            return Stream.of(Arguments.of(0), Arguments.of(1), Arguments.of(255), Arguments.of(256), Arguments.of(65535), Arguments.of(65536),
                    Arguments.of(0x7FFFFFFF), Arguments.of(0xFFFFFFFF));
        }
    
        @Test
        @DisplayName("readInt2 should correctly read 16-bit integer")
        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            // Test with max int value (unsigned interpretation)
            buffer.putInt(0, 0xFFFFFFFF);
            assertEquals(0xFFFFFFFF, NtlmMessage.readULong(data, 0), "Should read max ULong correctly.");
    
            // Test with a negative int (should be interpreted as unsigned positive)
            buffer.putInt(0, -1); // -1 is 0xFFFFFFFF
            assertEquals(0xFFFFFFFF, NtlmMessage.readULong(data, 0), "Should interpret -1 as unsigned max ULong.");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            SMBUtil.writeInt2(16, buffer, 0);
            buffer[2] = (byte) 0xFF; // Max share type
            buffer[3] = 0;
            SMBUtil.writeInt4(0xFFFFFFFF, buffer, 4); // Max share flags
            SMBUtil.writeInt4(0xFFFFFFFF, buffer, 8); // Max capabilities
            SMBUtil.writeInt4(0xFFFFFFFF, buffer, 12); // Max access
    
            // When
            int bytesRead = response.readBytesWireFormat(buffer, 0);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacLogonInfoTest.java

            DataOutputStream dos = new DataOutputStream(baos);
    
            // Write the special "never" FILETIME value
            writeLittleEndianInt(dos, 0xffffffff);
            writeLittleEndianInt(dos, 0x7fffffff);
    
            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
            PacDataInputStream pacStream = new PacDataInputStream(bais);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                    + ((src[srcIndex + 3] & 0xFF) << 24);
        }
    
        static long readInt8(final byte[] src, final int srcIndex) {
            return (readInt4(src, srcIndex) & 0xFFFFFFFFL) + ((long) readInt4(src, srcIndex + 4) << 32);
        }
    
        static void writeInt8(long val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/util/SMBUtil.java

         * @param srcIndex the starting index in the source array
         * @return the 64-bit integer value
         */
        public static long readInt8(final byte[] src, final int srcIndex) {
            return (readInt4(src, srcIndex) & 0xFFFFFFFFL) + ((long) readInt4(src, srcIndex + 4) << 32);
        }
    
        /**
         * Writes a 64-bit integer value to a byte array in little-endian format
         * @param val the value to write
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top