Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 284 for 0xFF (0.02 sec)

  1. src/test/java/jcifs/smb/SpnegoContextTest.java

            assertEquals(0, cap.getValue().length, "Optimistic token must be zero-length");
        }
    
        @ParameterizedTest
        @ValueSource(bytes = { 0x00, 0x7F, (byte) 0xFF })
        @DisplayName("initSecContext throws on invalid token type")
        void testInitSecContextInvalidTokenType(byte firstByte) throws Exception {
            SpnegoContext ctx = newContext();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/Hexdump.java

                        ci += n * 3;
                        System.arraycopy(SPACE_CHARS, 0, d, s, n);
                        break;
                    }
                    c[ci++] = ' ';
                    i = src[srcIndex + si] & 0xFF;
                    toHexChars(i, c, ci, 2);
                    ci += 2;
                    if (i < 0 || Character.isISOControl((char) i)) {
                        d[si % 16] = '.';
                    } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            try (InputStream stream = cache.getInputStream()) {
                for (int i = 0; i < 256; i++) {
                    int byteValue = stream.read();
                    assertEquals("Byte at position " + i, i & 0xFF, byteValue);
                }
                assertEquals(-1, stream.read()); // End of stream
            }
        }
    
        @Test
        public void testStreamReadPartial() throws IOException {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        @Test
        @DisplayName("Test setCommand with various SMB command codes")
        void testSetCommandWithVariousCodes() {
            // Test common SMB command codes
            int[] commandCodes = { 0x00, 0x72, 0x73, 0x74, 0x75, 0xFF };
    
            for (int command : commandCodes) {
                doNothing().when(messageBlock).setCommand(command);
                when(messageBlock.getCommand()).thenReturn(command);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            char[] plaintext = "SecureData".toCharArray();
            byte[] encrypted = storage.encryptCredentials(plaintext);
    
            // Tamper with the encrypted data
            encrypted[encrypted.length - 1] ^= 0xFF;
    
            // Should throw exception due to authentication tag failure
            assertThrows(GeneralSecurityException.class, () -> {
                storage.decryptCredentials(encrypted);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacDataInputStream.java

         * @return the unsigned byte value as an integer
         * @throws IOException if an I/O error occurs
         */
        public int readUnsignedByte() throws IOException {
            return readByte() & 0xff;
        }
    
        /**
         * Reads an unsigned 32-bit integer value.
         * @return the unsigned integer value as a long
         * @throws IOException if an I/O error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

        void testSpecialFileIdPatterns() {
            // Test various special patterns
            byte[] allZeros = new byte[16];
            byte[] allOnes = new byte[16];
            Arrays.fill(allOnes, (byte) 0xFF);
            byte[] alternating = new byte[16];
            for (int i = 0; i < alternating.length; i++) {
                alternating[i] = (byte) (i % 2 == 0 ? 0xAA : 0x55);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SecurityBlobTest.java

                    Arguments.of(new byte[] { (byte) 0xAB }, "ab"),
                    Arguments.of(new byte[] { (byte) 0x7F, (byte) 0x80, (byte) 0xFF }, "7f80ff"));
        }
    
        // Verifies that toString() formats bytes as lower-case hex with zero-padding
        @ParameterizedTest(name = "toString renders hex for {0}")
        @MethodSource("hexCases")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            }
    
            @Test
            @DisplayName("Should not modify buffer beyond encoded area")
            void testEncodeDoesNotModifyBeyondArea() {
                // Given
                byte testByte = (byte) 0xFF;
                java.util.Arrays.fill(buffer, testByte);
                SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096);
    
                // When
                chunk.encode(buffer, startIndex);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            when(resp.getErrorCode()).thenReturn(0x10B);
            when(resp.getNotifyInformation()).thenReturn(new ArrayList<>());
            setupSmb1(resp, 42);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0xFF, false);
    
            List<FileNotifyInformation> result = sut.watch();
    
            assertNotNull(result);
            verify(handle, times(1)).markClosed();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top