Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for isSigned (0.04 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                final int index = offset + SIGNATURE_OFFSET;
                for (int i = 0; i < SIGNATURE_LENGTH; i++) {
                    data[index + i] = 0;
                }
    
                // set signed flag
                final int oldFlags = SMBUtil.readInt4(data, offset + 16);
                final int flags = oldFlags | ServerMessageBlock2.SMB2_FLAGS_SIGNED;
                SMBUtil.writeInt4(flags, data, offset + 16);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTransportPoolTest.java

                SmbTransport signed = transportPool.getSmbTransport(context, address, DEFAULT_PORT, false, true);
    
                // Then
                assertEquals(sharedTransport, shared);
                assertEquals(exclusiveTransport, exclusive);
                assertEquals(signedTransport, signed);
                verify(transportPool).getSmbTransport(context, address, DEFAULT_PORT, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            bufferIndex += 4;
            this.server.serverTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            int tzOffset = SMBUtil.readInt2(buffer, bufferIndex);
            // tzOffset is signed!
            if (tzOffset > Short.MAX_VALUE) {
                tzOffset = -1 * (65536 - tzOffset);
            }
            this.server.serverTimeZone = tzOffset;
            bufferIndex += 2;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                int bytesRead = response.readBytesWireFormat(buffer, 0);
    
                assertEquals(16, bytesRead);
                assertEquals(-1, response.getCount()); // -1 as signed int represents max unsigned value
                assertEquals(-2, response.getRemaining());
            }
    
            private byte[] createValidWriteResponse(int count, int remaining) {
                byte[] buffer = new byte[64];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * Returns <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code>,
         * <code>false</code> otherwise.
         *
         * @param type
         *            the type to check. Cannot be null.
         * @param clazz
         *            the class to check against. Cannot be null.
         * @return <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code>
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ACETest.java

            @Test
            @DisplayName("Should handle signed/unsigned integer boundaries")
            void shouldHandleSignedUnsignedBoundaries() {
                // Test that GENERIC_READ is the highest bit (0x80000000)
                assertEquals(0x80000000, ACE.GENERIC_READ, "GENERIC_READ should be 0x80000000");
                assertTrue(ACE.GENERIC_READ < 0, "GENERIC_READ should be negative when treated as signed int");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        void testReadParameterWords(int expectedInt, byte[] bytes) {
            // The implementation reads via SMBUtil.readInt4 which returns an int
            // When assigned to a long field, it gets sign-extended
            int readLen = response.readParameterWordsWireFormat(bytes, 0);
            long expectedOffset = expectedInt; // Sign extension happens here for negative values
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        @ParameterizedTest
        @CsvSource({ "1, 1", // DISK
                "2, 2", // PIPE
                "3, 3", // PRINT
                "0, 0", // Unknown
                "255, -1" // Byte overflow to signed
        })
        void testDifferentShareTypes(int shareTypeValue, int expectedValue) throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[256];
            SMBUtil.writeInt2(16, buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                assertEquals("Expected structureSize = 4", exception.getMessage());
            }
    
            @Test
            @DisplayName("Should handle signed byte value correctly")
            void testReadBytesWireFormatSignedByteValue() {
                // Given
                byte[] buffer = new byte[10];
                // Write 4 in little-endian format
                buffer[0] = 0x04;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode with negative values")
        void testDecodeWithNegativeValues() throws SMBProtocolDecodingException {
            // Prepare test data with negative values (when interpreted as signed)
            byte[] buffer = new byte[16];
            int bufferIndex = 0;
    
            // Set up negative values
            int namedPipeState = -1;
            int readDataAvailable = -100;
            int numberOfMessages = -200;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top