Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 175 for 0x12 (0.04 sec)

  1. 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)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertEquals(dst.length, n);
    
            // resumeKey (LE) at offset 6..9 should be 0x11121314 -> 14 13 12 11
            assertEquals((byte) 0x14, dst[6]);
            assertEquals((byte) 0x13, dst[7]);
            assertEquals((byte) 0x12, dst[8]);
            assertEquals((byte) 0x11, dst[9]);
    
            // filename content
            byte[] nameBytes = updatedName.getBytes();
            for (int i = 0; i < nameBytes.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

            assertEquals(0x10, smbComOpenAndX.openFunction); // OPEN_FN_CREATE | OPEN_FN_FAIL_IF_EXISTS
        }
    
        /**
         * Test constructor with O_CREAT flag.
         */
        @Test
        void testConstructor_CreateAndOpen() {
            int flags = SmbFile.O_CREAT;
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, flags, andx);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            // Parameters: status (2 bytes), converter (2 bytes), numEntries (2 bytes), totalAvailableEntries (2 bytes)
            byte[] buffer = { 0x00, 0x00, // status = 0 (Success)
                    0x12, 0x34, // converter = 0x3412
                    0x02, 0x00, // numEntries = 2
                    0x05, 0x00 // totalAvailableEntries = 5
            };
    
            int bytesRead = response.readParametersWireFormat(buffer, 0, buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java

            assertEquals(2, written, "writeParametersWireFormat should write exactly 2 bytes");
    
            // Verify little-endian encoding (0x1234 -> 0x34 0x12)
            assertEquals((byte) 0x34, buf[0], "First byte should be low byte of level");
            assertEquals((byte) 0x12, buf[1], "Second byte should be high byte of level");
        }
    
        @Test
        @DisplayName("all read* methods return zero")
        void testReadMethodsReturnZero() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

            // create a buffer with count = 0x1234 (4660 decimal)
            // Using little-endian byte order as per SMBUtil.readInt2
            byte[] buf = new byte[12];
            buf[0] = 0x34; // Low byte
            buf[1] = 0x12; // High byte
            int written = resp.readParameterWordsWireFormat(buf, 0);
    
            assertEquals(8, written, "Expected readParameterWordsWireFormat to advance 8 bytes");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

            return java.util.stream.Stream.of(Arguments.of(0x00000000, new byte[] { 0x00, 0x00, 0x00, 0x00 }),
                    Arguments.of(0x12345678, new byte[] { 0x78, 0x56, 0x34, 0x12 }),
                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            int len = cmd.writeParametersWireFormat(buffer, 0);
            assertTrue(len >= 2);
            // writeInt2 writes in little-endian format (LSB first)
            assertEquals(0xAB, buffer[0] & 0xFF);
            assertEquals(0x12, buffer[1] & 0xFF);
            // Check that the path is written after the referral level
            // The path should be written starting at index 2
            // writeString adds null terminator
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. 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)
Back to top