Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 114 for 0x00FF (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(4, bytesWritten);
    
            // Expected wire format: [0x04, 0x00, 0x00, 0x00]
            byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 };
            assertArrayEquals(expected, buffer);
        }
    
        @Test
        @DisplayName("Should always return 0 for readBytesWireFormat")
        void testReadBytesWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

                    this.createDisposition = FILE_OPEN_IF;
                }
            } else {
                this.createDisposition = FILE_OPEN;
            }
    
            if ((createOptions & 0x0001) == 0) {
                this.createOptions = createOptions | 0x0040;
            } else {
                this.createOptions = createOptions;
            }
            this.impersonationLevel = 0x02; // As seen on NT :~)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            // recordType (2 bytes)
            src[srcIndex + 2] = 0x00;
            src[srcIndex + 3] = 0x20; // NB (0x0020)
            // recordClass (2 bytes)
            src[srcIndex + 4] = 0x00;
            src[srcIndex + 5] = 0x01; // IN (0x0001)
            // ttl (4 bytes)
            src[srcIndex + 6] = 0x00;
            src[srcIndex + 7] = 0x00;
            src[srcIndex + 8] = 0x00;
            src[srcIndex + 9] = 0x00;
            // rDataLength (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/Hexdump.java

            while (size > 0) {
                final int i = dstIndex + size - 1;
                if (i < dst.length) {
                    dst[i] = HEX_DIGITS[val & 0x000F];
                }
                if (val != 0) {
                    val >>>= 4;
                }
                size--;
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            assertNotNull(result);
            assertTrue(result.contains("FileNotifyInformation"));
            assertTrue(result.contains("nextEntry=0"));
            assertTrue(result.contains("action=0x0000")); // Hexdump.toHexString produces 4-char padded hex
            assertTrue(result.contains("file=null"));
        }
    
        @ParameterizedTest
        @DisplayName("Test decode with aligned next entry offsets")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

        void testEncode() {
            byte[] testBytes = new byte[] { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, (byte) 0x88, (byte) 0x99, (byte) 0xAA, (byte) 0xBB,
                    (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF, 0x00 };
    
            Smb2LeaseKey key = new Smb2LeaseKey(testBytes);
            byte[] buffer = new byte[20];
    
            key.encode(buffer, 2);
    
            for (int i = 0; i < 16; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. cmd/untar.go

    		header: []byte{0x2a, 0x4d, 0x18},
    		f:      formatZstd,
    	},
    	{
    		// LZ4
    		header: []byte{0x4, 0x22, 0x4d, 0x18},
    		f:      formatLZ4,
    	},
    	{
    		// Snappy/S2 stream
    		header: []byte{0xff, 0x06, 0x00, 0x00},
    		f:      formatS2,
    	},
    	{
    		header: []byte{0x42, 0x5a, 'h'},
    		f:      formatBZ2,
    	},
    }
    
    type untarOptions struct {
    	ignoreDirs bool
    	ignoreErrs bool
    	prefixAll  string
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 6K bytes
    - Viewed (2)
  8. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001)
            int descrEnd = 2 + expectedDescrBytes.length;
            assertEquals(0x01, dst[descrEnd]);
            assertEquals(0x00, dst[descrEnd + 1]);
    
            // Verify maxDataCount (16384)
            assertEquals(16384, SMBUtil.readInt2(dst, descrEnd + 2));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseState.java

    /**
     * SMB2 Lease State constants
     *
     * MS-SMB2 2.2.13.2.8
     */
    public class Smb2LeaseState {
    
        /**
         * No lease caching
         */
        public static final int SMB2_LEASE_NONE = 0x00;
    
        /**
         * Read caching lease (R)
         */
        public static final int SMB2_LEASE_READ_CACHING = 0x01;
    
        /**
         * Handle caching lease (H)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformation.java

            maxSetupCount = 0;
        }
    
        @Override
        int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = subCommand;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            return 2;
        }
    
        @Override
        int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            writeInt2(informationLevel, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top