Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 254 for 0x11 (0.03 sec)

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

            when(this.mechContext.getFlags()).thenReturn(0x1234);
            when(this.mechContext.initSecContext(any(byte[].class), eq(0), eq(0))).thenReturn(new byte[] { 0x01, 0x02 });
    
            // Act: len==0 triggers initial token construction
            byte[] out = ctx.initSecContext(null, 0, 0);
    
            // Assert: returns a SPNEGO token (opaque here but non-null/non-empty)
    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. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

     * fills, it is doubled.
     */
    @Suppress("NAME_SHADOWING")
    object Hpack {
      private const val PREFIX_4_BITS = 0x0f
      private const val PREFIX_5_BITS = 0x1f
      private const val PREFIX_6_BITS = 0x3f
      private const val PREFIX_7_BITS = 0x7f
    
      private const val SETTINGS_HEADER_TABLE_SIZE = 4_096
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        bytesIn.writeByte(0x20)
        hpackReader!!.readHeaders()
        assertThat(hpackReader!!.maxDynamicTableByteCount()).isEqualTo(0)
        bytesIn.writeByte(0x3f) // encode size 4096
        bytesIn.writeByte(0xe1)
        bytesIn.writeByte(0x1f)
        hpackReader!!.readHeaders()
        assertThat(hpackReader!!.maxDynamicTableByteCount()).isEqualTo(4096)
      }
    
      // Example taken from twitter/hpack DecoderTest.testIllegalHeaderTableSizeUpdate
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Test with various wildcard patterns and attribute masks
                String[] wildcards = { "*.txt", "test*", null };
                int[] attributes = { 0x10, 0x20, 0x07 };
    
                for (int i = 0; i < wildcards.length; i++) {
                    DosFileFilter dos = new DosFileFilter(wildcards[i], attributes[i]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

                    Arguments.of(0xFF00, (byte) 0x00, (byte) 0xFF), Arguments.of(0xFFFF, (byte) 0xFF, (byte) 0xFF),
                    Arguments.of(0x1234, (byte) 0x34, (byte) 0x12));
        }
    
        @Test
        @DisplayName("readSetupWireFormat should return 0")
        void testReadSetupWireFormat() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/Kerb5ContextTest.java

            byte[] nb = name.getBytes();
            int len = 2 + 2 + der.length + 4 + nb.length;
            byte[] out = new byte[len];
            int i = 0;
            out[i++] = 0x04; // TOK_ID[0]
            out[i++] = 0x01; // TOK_ID[1]
            out[i++] = (byte) ((der.length >> 8) & 0xFF);
            out[i++] = (byte) (der.length & 0xFF);
            System.arraycopy(der, 0, out, i, der.length);
            i += der.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileTest.java

                // Act
                var inputStream = smbFile.getInputStream();
    
                // Assert
                assertNotNull(inputStream);
                verify(smbFile).openUnshared(0, // SmbConstants.O_RDONLY = 0x01, but SmbFileInputStream uses 0
                        SmbFile.O_RDONLY, SmbConstants.DEFAULT_SHARING, // 7 = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE
                        SmbConstants.ATTR_NORMAL, // 128
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001 - 2 bytes)
            int descrEnd = 2 + expectedDescrBytes.length;
            assertEquals(0x01, dst[descrEnd]);
            assertEquals(0x00, dst[descrEnd + 1]);
    
            // Verify maxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, descrEnd + 2);
            assertTrue(maxDataCount > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            assertEquals(999, bufDataStartField.get(response));
        }
    
        @ParameterizedTest
        @DisplayName("Test reserved bytes are properly skipped")
        @ValueSource(bytes = { 0x00, 0x01, (byte) 0xFF, 0x7F, (byte) 0x80 })
        void testReservedBytesSkipped(byte reservedValue) throws Exception {
            byte[] buffer = new byte[100];
            int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

            }
    
            @Test
            @DisplayName("Should construct with config and command")
            void testConstructorWithConfigAndCommand() {
                int command = 0x01;
                TestServerMessageBlock2Response resp = new TestServerMessageBlock2Response(mockConfig, command);
                assertNotNull(resp);
                assertSame(mockConfig, resp.getConfig());
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top