Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for 0x12 (0.03 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcConstantsTest.java

            void testRpcPtShutdown() {
                assertEquals(0x11, DcerpcConstants.RPC_PT_SHUTDOWN, "RPC_PT_SHUTDOWN should be 0x11");
            }
    
            @Test
            @DisplayName("RPC_PT_CANCEL should have correct value")
            void testRpcPtCancel() {
                assertEquals(0x12, DcerpcConstants.RPC_PT_CANCEL, "RPC_PT_CANCEL should be 0x12");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            ndrBuffer.readOctetArray(destData, 1, 3); // Read 0x10, 0x11, 0x12 into destData[1-3]
    
            assertEquals(3, ndrBuffer.getIndex());
            assertEquals(0x00, destData[0]);
            assertEquals(0x10, destData[1]);
            assertEquals(0x11, destData[2]);
            assertEquals(0x12, destData[3]);
            assertEquals(0x00, destData[4]);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/util/SMBUtilTest.java

        void testWriteInt2() {
            byte[] dst = new byte[10];
    
            // Test with simple value
            SMBUtil.writeInt2(0x1234L, dst, 0);
            assertEquals((byte) 0x34, dst[0]);
            assertEquals((byte) 0x12, dst[1]);
    
            // Test with max value for 2 bytes
            SMBUtil.writeInt2(0xFFFFL, dst, 2);
            assertEquals((byte) 0xFF, dst[2]);
            assertEquals((byte) 0xFF, dst[3]);
    
            // Test with zero
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            void testCommandProperty() {
                testBlock.setCommand(0x42);
                assertEquals(0x42, testBlock.getCommand());
            }
    
            @Test
            @DisplayName("Test flags property")
            void testFlagsProperty() {
                testBlock.setFlags((byte) 0x12);
                assertEquals((byte) 0x12, testBlock.getFlags());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        void testReadHeaderWireFormat() {
            byte[] buffer = { (byte) 0x82, (byte) 0x00, (byte) 0x00, (byte) 0x20 };
            ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
    
            int read = packet.readHeaderWireFormat(bais, buffer, 0);
    
            assertEquals(4, read);
            assertEquals(0x82, packet.type);
            assertEquals(0x20, packet.length);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals(NameServicePacket.HEADER_LENGTH, written);
    
            assertEquals((byte) 0x12, dst[0]); // nameTrnId
            assertEquals((byte) 0x34, dst[1]);
            assertEquals((byte) (0x80 | (NameServicePacket.QUERY << 3) | 0x04 | 0x02 | 0x01), dst[2]); // flags1
            assertEquals((byte) (0x80 | 0x10 | NameServicePacket.FMT_ERR), dst[3]); // flags2
            assertEquals((byte) 0x00, dst[4]); // questionCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.toByteArray(0x12131415)).isEqualTo(new byte[] {0x12, 0x13, 0x14, 0x15});
        assertThat(Ints.toByteArray(0xFFEEDDCC))
            .isEqualTo(new byte[] {(byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC});
      }
    
      public void testFromByteArray() {
        assertThat(Ints.fromByteArray(new byte[] {0x12, 0x13, 0x14, 0x15, 0x33})).isEqualTo(0x12131415);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SIDTest.java

         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testStringConstructorWithHex() throws SmbException {
            SID sid = new SID("S-1-0x12-21-1");
            assertEquals(1, sid.revision);
            assertEquals(0x12, sid.identifier_authority[5]);
            assertEquals(2, sid.sub_authority_count);
            assertEquals(21, sid.sub_authority[0]);
            assertEquals(1, sid.sub_authority[1]);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            }
    
            // MAC address
            int macOffset = srcIndex + 1 + (18 * numNames);
            byte[] testMac = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 };
            System.arraycopy(testMac, 0, src, macOffset, 6);
    
            // Statistics
            byte[] stats = { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15 };
            System.arraycopy(stats, 0, src, macOffset + 6, 6);
    
            int result = response.readRDataWireFormat(src, srcIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            dnsDomainInfo.domain_guid.time_mid = 0x1234;
            dnsDomainInfo.domain_guid.time_hi_and_version = 0x5678;
            dnsDomainInfo.domain_guid.clock_seq_hi_and_reserved = 0x12;
            dnsDomainInfo.domain_guid.clock_seq_low = 0x34;
            dnsDomainInfo.domain_guid.node = new byte[] { 1, 2, 3, 4, 5, 6 };
    
            dnsDomainInfo.sid = new rpc.sid_t();
            dnsDomainInfo.sid.revision = 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top