Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 217 for 0x40 (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Encode the full message
            request.encode(buffer, headerStart);
    
            // Then
            int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Verify session binding flag (0x0)
            assertEquals(0x0, buffer[bodyOffset + 2]);
        }
    
        @Test
        @DisplayName("Should handle null token correctly")
        void testWriteBytesWireFormatWithNullToken() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            assertEquals(0x01, Smb2QueryDirectoryRequest.SMB2_RESTART_SCANS);
            assertEquals(0x02, Smb2QueryDirectoryRequest.SMB2_RETURN_SINGLE_ENTRY);
            assertEquals(0x04, Smb2QueryDirectoryRequest.SMB2_INDEX_SPECIFIED);
            assertEquals(0x10, Smb2QueryDirectoryRequest.SMB2_REOPEN);
        }
    
        @Test
        @DisplayName("Test with Unicode filename")
        void testUnicodeFileName() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SecurityBlobTest.java

            return Stream.of(Arguments.of(new byte[] {}, ""), Arguments.of(new byte[] { (byte) 0x00 }, "00"),
                    Arguments.of(new byte[] { (byte) 0x0F }, "0f"), Arguments.of(new byte[] { (byte) 0x10 }, "10"),
                    Arguments.of(new byte[] { (byte) 0xAB }, "ab"),
                    Arguments.of(new byte[] { (byte) 0x7F, (byte) 0x80, (byte) 0xFF }, "7f80ff"));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/net/InetAddresses.java

       * @return {@code true} if the argument is a 6to4 address
       */
      public static boolean is6to4Address(Inet6Address ip) {
        byte[] bytes = ip.getAddress();
        return (bytes[0] == (byte) 0x20) && (bytes[1] == (byte) 0x02);
      }
    
      /**
       * Returns the IPv4 address embedded in a 6to4 address.
       *
       * @param ip {@link Inet6Address} to be examined for embedded IPv4 in 6to4 address
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java

         */
        @Test
        void testReadParameterWordsWireFormat() {
            SmbComWriteAndXResponse response = new SmbComWriteAndXResponse();
            byte[] buffer = new byte[] { 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // count = 10
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
            // The count should be read from the buffer.
            assertEquals(10L, response.count);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         */
        public static final byte SMB_COM_CREATE_DIRECTORY = (byte) 0x00;
    
        /**
         * SMB command to delete a directory.
         */
        public static final byte SMB_COM_DELETE_DIRECTORY = (byte) 0x01;
    
        /**
         * SMB command to close a file handle.
         */
        public static final byte SMB_COM_CLOSE = (byte) 0x04;
    
        /**
         * SMB command to delete a file.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            void testReadBytesWireFormatSignedByteValue() {
                // Given
                byte[] buffer = new byte[10];
                // Write 4 in little-endian format
                buffer[0] = 0x04;
                buffer[1] = 0x00;
    
                // When & Then
                assertDoesNotThrow(() -> {
                    int bytesRead = response.readBytesWireFormat(buffer, 0);
                    assertEquals(4, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        hasher = HASH_FN.newHasher();
        hasher
            .putByte((byte) 0x01)
            .putByte((byte) 0x01)
            .putByte((byte) 0x00)
            .putByte((byte) 0x01)
            .putByte((byte) 0x00)
            .putByte((byte) 0x00)
            .putByte((byte) 0x00)
            .putByte((byte) 0x00);
        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher
            .putChar((char) 0x0101)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                basicInfo.attributes = 0x20; // Archive attribute
                basicInfo.createTime = 1000000L;
                basicInfo.lastWriteTime = 2000000L;
                basicInfo.lastAccessTime = 1500000L;
                basicInfo.changeTime = 2500000L;
    
                assertEquals(0x20, basicInfo.getAttributes());
                assertEquals(1000000L, basicInfo.getCreateTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java

            final int start = bufferIndex;
    
            buffer[bufferIndex] = (byte) 0x00; // Reserved
            bufferIndex++;
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
    
            this.totalParameterCount = SMBUtil.readInt4(buffer, bufferIndex);
            if (this.bufDataStart == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top