Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 96 for 0x7F (0.02 sec)

  1. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            final int start = dstIndex;
            writeInt2(nameTrnId, dst, dstIndex);
            dst[dstIndex + OPCODE_OFFSET] = (byte) ((isResponse ? 0x80 : 0x00) + (opCode << 3 & 0x78) + (isAuthAnswer ? 0x04 : 0x00)
                    + (isTruncated ? 0x02 : 0x00) + (isRecurDesired ? 0x01 : 0x00));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/NameServicePacket.java

            final int start = dstIndex;
            writeInt2(this.nameTrnId, dst, dstIndex);
            dst[dstIndex + OPCODE_OFFSET] = (byte) ((this.isResponse ? 0x80 : 0x00) + (this.opCode << 3 & 0x78)
                    + (this.isAuthAnswer ? 0x04 : 0x00) + (this.isTruncated ? 0x02 : 0x00) + (this.isRecurDesired ? 0x01 : 0x00));
            dst[dstIndex + OPCODE_OFFSET + 1] =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                Type2Message message = new Type2Message(mockContext);
                byte[] testContext =
                        new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 };
    
                // When
                message.setContext(testContext);
    
                // Then
                assertArrayEquals(testContext, message.getContext());
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

         */
        @Test
        @DisplayName("Test SMB_COM_TREE_DISCONNECT command value is 0x71")
        public void testCommandValue() {
            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
    
            // When
            int command = smbComTreeDisconnect.getCommand();
    
            // Then
            assertEquals(0x71, command & 0xFF);
            assertEquals(ServerMessageBlock.SMB_COM_TREE_DISCONNECT, (byte) command);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            assertEquals(0x12, dst[1] & 0xFF);
            // Check count
            assertEquals(10, dst[2] & 0xFF);
            assertEquals(0, dst[3] & 0xFF);
            // Check offset
            assertEquals(0x78, dst[4] & 0xFF);
            assertEquals(0x56, dst[5] & 0xFF);
        }
    
        /**
         * Test writeBytesWireFormat writes data correctly
         */
        @Test
        public void testWriteBytesWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        @DisplayName("writeSecurityBuffer copies data and sets fields")
        void testWriteSecurityBufferNonZero() {
            byte[] dest = new byte[8 + 4];
            byte[] payload = { 0x55, 0x66, 0x77 };
            NtlmMessage.writeSecurityBuffer(dest, 0, 8, payload);
            assertEquals(3, NtlmMessage.readUShort(dest, 0), "Length field must be 3");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            SessionServicePacket.writeInt4(0x12345678, dst, 0);
    
            assertEquals((byte) 0x12, dst[0]);
            assertEquals((byte) 0x34, dst[1]);
            assertEquals((byte) 0x56, dst[2]);
            assertEquals((byte) 0x78, dst[3]);
        }
    
        @ParameterizedTest
        @MethodSource("provideInt4TestValues")
        @DisplayName("writeInt4 should handle various values")
        void testWriteInt4Various(int value) {
            byte[] dst = new byte[4];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals((byte) 0x56, dst[2]);
            assertEquals((byte) 0x78, dst[3]);
        }
    
        @Test
        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34 };
            assertEquals(0x1234, NameServicePacket.readInt2(src, 0));
        }
    
        @Test
        void testReadInt4() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 };
            assertEquals(0x12345678, NameServicePacket.readInt4(src, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            buf[bodyStart + 2] = 0x02; // errorContextCount
            buf[bodyStart + 3] = 0x00; // reserved
            int bc = 4;
            SMBUtil.writeInt4(bc, buf, bodyStart + 4);
            byte[] err = new byte[] { 0x55, 0x66, 0x77, 0x01 };
            System.arraycopy(err, 0, buf, bodyStart + 8, bc);
    
            int decoded = resp.decode(buf, headerStart);
            assertTrue(decoded > 0);
    
            // When error path is taken, no blob should be parsed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractXmlExtractor.java

        /**
         * UTF-7 Byte Order Mark definition.
         */
        protected static final ByteOrderMark BOM_UTF_7 = new ByteOrderMark("UTF-7", 0x2B, 0x2F, 0x76);
    
        /**
         * HTML4 unescape translator.
         */
        protected static final CharSequenceTranslator UNESCAPE_HTML4 = new AggregateTranslator(
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top