Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 178 for 0x12 (0.04 sec)

  1. src/archive/zip/struct.go

    		// date bits 0-4: day of month; 5-8: month; 9-15: years since 1980
    		int(dosDate>>9+1980),
    		time.Month(dosDate>>5&0xf),
    		int(dosDate&0x1f),
    
    		// time bits 0-4: second/2; 5-10: minute; 11-15: hour
    		int(dosTime>>11),
    		int(dosTime>>5&0x3f),
    		int(dosTime&0x1f*2),
    		0, // nanoseconds
    
    		time.UTC,
    	)
    }
    
    // timeToMsDosTime converts a time.Time to an MS-DOS date and time.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      }
    
      @GwtIncompatible // Chars.fromByteArray, Chars.toByteArray
      public void testByteArrayRoundTripsFails() {
        assertThrows(IllegalArgumentException.class, () -> Chars.fromByteArray(new byte[] {0x11}));
      }
    
      public void testEnsureCapacity() {
        assertThat(Chars.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Chars.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Verify results is now set (even if empty)
            assertNotNull(response.getResults());
        }
    
        @ParameterizedTest
        @CsvSource({ "0x01, FILE_DIRECTORY_INFO", "0x02, FILE_FULL_DIRECTORY_INFO", "0x03, FILE_BOTH_DIRECTORY_INFO" })
        @DisplayName("Test constructor with different info class constants")
        void testConstructorWithDifferentInfoClasses(byte infoClass, String description) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Write READ response body
            int dataLength = 20;
            int dataRemaining = 0;
            int dataOffsetFromHeader = 80;
    
            // Structure size (17 = 0x11)
            SMBUtil.writeInt2(17, buffer, bodyStart);
            // Data offset (byte - offset from header start)
            buffer[bodyStart + 2] = (byte) dataOffsetFromHeader;
            // Reserved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            @DisplayName("Should handle file ID updates")
            void testFileIdUpdates() {
                // Initial file ID
                byte[] initialFileId = new byte[16];
                Arrays.fill(initialFileId, (byte) 0x11);
                request.setFileId(initialFileId);
    
                byte[] buffer1 = new byte[256];
                request.writeBytesWireFormat(buffer1, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // Then
            assertTrue(response.haveCapabilitiy(0x01)); // Has this bit
            assertTrue(response.haveCapabilitiy(0x0F)); // Has all these bits
            assertFalse(response.haveCapabilitiy(0x10)); // Doesn't have this bit
            assertFalse(response.haveCapabilitiy(0x40)); // Doesn't have this bit
        }
    
        @Test
        @DisplayName("Should check DFS support correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // Given - Prepare a valid SMB2 Tree Connect Response buffer
                byte[] buffer = new byte[16];
                // Structure size (16)
                buffer[0] = 0x10;
                buffer[1] = 0x00;
                // Share type (DISK)
                buffer[2] = Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK;
                // Reserved
                buffer[3] = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/ReferralTest.java

            assertEquals(24, decodedSize);
    
            // Decode with excess length
            Referral referral2 = new Referral();
            decodedSize = referral2.decode(testBuffer, 0, 512);
            assertEquals(24, decodedSize);
        }
    
        // Multiple Expanded Names Tests
    
        @Test
        public void testSingleExpandedName() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        protected static final short SMB2_NEGOTIATE = 0x00;
        /** SMB2 session setup command */
        protected static final short SMB2_SESSION_SETUP = 0x01;
        /** SMB2 logoff command */
        protected static final short SMB2_LOGOFF = 0x02;
        /** SMB2 tree connect command */
        protected static final short SMB2_TREE_CONNECT = 0x0003;
        /** SMB2 tree disconnect command */
        protected static final short SMB2_TREE_DISCONNECT = 0x0004;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt

                assertThat(b).isEqualTo(2.toByte())
              }
            }
          },
        )
      }
    
      @Test fun dataFrameNotAssociateWithStream() {
        val payload = byteArrayOf(0x01, 0x02)
        writeMedium(frame, payload.size)
        frame.writeByte(Http2.TYPE_DATA)
        frame.writeByte(FLAG_NONE)
        frame.writeInt(0)
        frame.write(payload)
        assertFailsWith<IOException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 28.1K bytes
    - Viewed (0)
Back to top