Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 95 for 0x0311 (0.12 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            assertEquals(0, bytesRead);
            assertEquals(0, response.getAttributes());
            assertEquals(0, response.getSize());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0x0001, 0x0002, 0x0004, 0x0010, 0x0020, 0x0080, 0x0100 })
        void testDifferentFileAttributes(int fileAttribute) {
            // Test various file attribute values
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

        void testConstructorWithConfigOnly() {
            request = new Smb2SetInfoRequest(mockConfig);
    
            assertNotNull(request);
            // SMB2_SET_INFO command value is 0x0011
            assertEquals((short) 0x0011, request.getCommand());
    
            // Verify that default file ID is set
            byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID;
            Field fileIdField;
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            byte[] buf = new byte[256];
            int headerStart = 0;
            long expectedSessionId = 0x1122334455667788L;
            buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            // Credit charge
            SMBUtil.writeInt2(1, buffer, bufferIndex + 6);
            // Status
            SMBUtil.writeInt4(0, buffer, bufferIndex + 8);
            // Command - SMB2_SET_INFO (0x0011)
            SMBUtil.writeInt2(0x0011, buffer, bufferIndex + 12);
            // Credits
            SMBUtil.writeInt2(1, buffer, bufferIndex + 14);
            // Flags
            SMBUtil.writeInt4(1, buffer, bufferIndex + 16); // SMB2_FLAGS_SERVER_TO_REDIR
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt

        assertThat(
          mergeAdjacentRanges(
            listOf(
              Mapping(0x0041, 0x0041, TYPE_MAPPED, "a".encodeUtf8()),
              Mapping(0x0042, 0x0042, TYPE_MAPPED, "b".encodeUtf8()),
            ),
          ),
        ).containsExactly(
          Mapping(0x0041, 0x0041, TYPE_MAPPED, "a".encodeUtf8()),
          Mapping(0x0042, 0x0042, TYPE_MAPPED, "b".encodeUtf8()),
        )
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            // Then
            assertEquals(messageSize, transformHeader.getOriginalMessageSize());
        }
    
        @Test
        @DisplayName("Should set and get flags")
        void testFlags() {
            // Given
            int flags = 0x0001; // Encrypted flag
    
            // When
            transformHeader.setFlags(flags);
    
            // Then
            assertEquals(flags, transformHeader.getFlags());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        hasher.putBytes(new byte[] {});
        hasher.putBytes(new byte[] {8});
        hasher.assertBytes(expected);
      }
    
      public void testShort() {
        TestHasher hasher = new TestHasher();
        hasher.putShort((short) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testInt() {
        TestHasher hasher = new TestHasher();
        hasher.putInt(0x04030201);
        hasher.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

        /**
         * Tests the writeSetupWireFormat method.
         */
        @Test
        void testWriteSetupWireFormat() {
            // Given
            Trans2QueryPathInformation trans = new Trans2QueryPathInformation("test.txt", 0x0101);
            byte[] dst = new byte[2];
    
            // When
            int bytesWritten = trans.writeSetupWireFormat(dst, 0);
    
            // Then
            assertEquals(2, bytesWritten, "Should write 2 bytes.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            // Name pointer (0xC00C)
            src[srcIndex] = (byte) 0xC0;
            src[srcIndex + 1] = 0x0C;
            // Record type (NBSTAT = 0x0021)
            src[srcIndex + 2] = 0x00;
            src[srcIndex + 3] = 0x21;
            // Record class (IN = 0x0001)
            src[srcIndex + 4] = 0x00;
            src[srcIndex + 5] = 0x01;
            // TTL (4 bytes)
            src[srcIndex + 6] = 0x00;
            src[srcIndex + 7] = 0x00;
            src[srcIndex + 8] = 0x00;
    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/internal/smb1/trans2/Trans2SetFileInformationTest.java

            // Check FID
            int actualFid = SMBUtil.readInt2(buffer, 0);
            assertEquals(TEST_FID, actualFid);
    
            // Check information level (FILE_BASIC_INFO maps to 0x0101)
            int actualInfoLevel = SMBUtil.readInt2(buffer, 2);
            assertEquals(0x0101, actualInfoLevel);
    
            // Check reserved bytes (should be 0)
            int reserved = SMBUtil.readInt2(buffer, 4);
            assertEquals(0, reserved);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top