Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 97 for unsigned (0.17 sec)

  1. src/test/java/jcifs/internal/dfs/ReferralTest.java

        @Test
        public void testMaximumValues() {
            ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
            bb.putShort((short) 3);
            bb.putShort((short) 65535); // max unsigned short
            bb.putShort((short) 65535);
            bb.putShort((short) 65535);
            bb.putShort((short) 65535);
            bb.putShort((short) 65535);
            bb.putShort((short) 0);
            bb.putShort((short) 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                byte[] buffer = new byte[256];
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                // Negative value should be written as-is (interpreted as unsigned by receiver)
                assertEquals(-1L, SMBUtil.readInt8(buffer, 8));
            }
    
            @Test
            @DisplayName("Should handle zero-length read")
            void testZeroLengthRead() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

            @Test
            @DisplayName("Should handle negative values in buffer")
            void shouldHandleNegativeValuesInBuffer() throws SMBProtocolDecodingException {
                // Given - negative values (treated as unsigned in protocol)
                ByteBuffer buffer = ByteBuffer.allocate(32);
                buffer.order(ByteOrder.LITTLE_ENDIAN);
                buffer.putLong(-1L);
                buffer.putLong(-1L);
                buffer.putLong(-1L);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("Signed Flag Tests")
        class SignedFlagTests {
    
            @Test
            @DisplayName("Should detect signed flag")
            void testIsSigned() {
                assertFalse(echoResponse.isSigned());
    
                echoResponse.addFlags(ServerMessageBlock2.SMB2_FLAGS_SIGNED);
    
                assertTrue(echoResponse.isSigned());
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

        @Override
        public final boolean isError() {
            return this.error;
        }
    
        /**
         * Checks whether this SMB2 response packet has been signed.
         *
         * @return whether the packet has been signed.
         */
        public boolean isSigned() {
            return (getFlags() & SMB2_FLAGS_SIGNED) != 0;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/entity/FessUser.java

        /**
         * Gets the user's display name.
         * @return The user's name.
         */
        String getName();
    
        /**
         * Gets the user's assigned role names.
         * @return Array of role names.
         */
        String[] getRoleNames();
    
        /**
         * Gets the user's assigned group names.
         * @return Array of group names.
         */
        String[] getGroupNames();
    
        /**
         * Gets the user's permissions.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/user/CreateForm.java

        /**
         * The attributes map for the user.
         */
        public Map<String, String> attributes = new HashMap<>();
    
        /**
         * The roles assigned to the user.
         */
        public String[] roles;
    
        /**
         * The groups assigned to the user.
         */
        public String[] groups;
    
        /**
         * Initializes the form with default values for creating a new user.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacTest.java

            // The error could be about version or missing buffers
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testUnalignedBuffer() throws IOException {
            // Create PAC with unaligned buffer offset
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, 1); // bufferCount
            writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // version
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            @Test
            @DisplayName("Should return true when signed flag is not set")
            void testVerifyNoSignedFlag() {
                // Don't set the signed flag
                SMBUtil.writeInt4(0x00000000, data, 16);
    
                boolean result = digest.verify(data, 0, data.length, 0, msg);
    
                assertTrue(result, "Should return true when signed flag is not set");
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

            assertEquals(2, lsarSidArrayX.sids.length, "sids array length should match");
            assertEquals(mockSid1, lsarSidArrayX.sids[0].sid, "First SID should be assigned directly");
            assertEquals(mockSid2, lsarSidArrayX.sids[1].sid, "Second SID should be assigned directly");
        }
    
        @Test
        void testConstructorWithEmptySIDArray() {
            jcifs.SID[] sids = {};
            LsarSidArrayX lsarSidArrayX = new LsarSidArrayX(sids);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top