Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 284 for 0xFF (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
    
            @Test
            @DisplayName("Should format unknown command")
            void testToStringUnknownCommand() {
                testMessage.setCommand(0xFF);
                String result = testMessage.toString();
    
                assertTrue(result.contains("command=UNKNOWN"));
            }
    
            @Test
            @DisplayName("Should include all fields in toString")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            request = new Smb2SetInfoRequest(mockConfig);
    
            // Set all fields
            byte[] newFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                newFileId[i] = (byte) (0xFF - i);
            }
            request.setFileId(newFileId);
            request.setInfoType((byte) 0x02);
            request.setFileInfoClass((byte) 0x08);
            request.setAdditionalInformation(0xABCDEF00);
    
    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/Smb2EchoResponseTest.java

                SMBUtil.writeInt2(4, buffer, bufferIndex);
    
                // Fill rest of buffer with garbage
                for (int i = 2; i < buffer.length; i++) {
                    buffer[i] = (byte) 0xFF;
                }
    
                // Should only read the structure size (2 bytes) and not go beyond
                int result = echoResponse.readBytesWireFormat(buffer, bufferIndex);
                assertEquals(0, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/ServerResponseValidator.java

        public void validateSmbHeader(int protocolId, int structureSize, int command) throws SmbException {
            totalValidations.incrementAndGet();
    
            // Check SMB1 signature
            if (protocolId == 0x424D53FF) { // 0xFF 'S' 'M' 'B'
                // SMB1
                if (structureSize < 32 || structureSize > 65535) {
                    failedValidations.incrementAndGet();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeImpl.java

                    break;
                case ServerMessageBlock.SMB_COM_TRANSACTION:
                case ServerMessageBlock.SMB_COM_TRANSACTION2:
                    switch (((SmbComTransaction) request).getSubCommand() & 0xFF) {
                    case SmbComTransaction.NET_SHARE_ENUM:
                    case SmbComTransaction.NET_SERVER_ENUM2:
                    case SmbComTransaction.NET_SERVER_ENUM3:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
    
            // When
            int command = smbComTreeDisconnect.getCommand();
    
            // Then
            assertEquals(0x71, command & 0xFF);
            assertEquals(ServerMessageBlock.SMB_COM_TREE_DISCONNECT, (byte) command);
        }
    
        /**
         * Nested class for testing buffer operations
         */
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  7. src/archive/zip/struct.go

    		mode |= fs.ModeDir
    	}
    	return mode
    }
    
    // SetMode changes the permission and mode bits for the [FileHeader].
    func (h *FileHeader) SetMode(mode fs.FileMode) {
    	h.CreatorVersion = h.CreatorVersion&0xff | creatorUnix<<8
    	h.ExternalAttrs = fileModeToUnixMode(mode) << 16
    
    	// set MSDOS attributes too, as the original zip does.
    	if mode&fs.ModeDir != 0 {
    		h.ExternalAttrs |= msdosDir
    	}
    	if mode&0200 == 0 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

        void testInitDefaultsWithPresetMachineId() throws Exception {
            BaseConfiguration testConfig = new BaseConfiguration(false);
            byte[] customMachineId = new byte[32];
            Arrays.fill(customMachineId, (byte) 0xFF);
    
            // Use reflection to set private field
            java.lang.reflect.Field machineIdField = BaseConfiguration.class.getDeclaredField("machineId");
            machineIdField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileInputStream.java

        public int read() throws IOException {
            // need oplocks to cache otherwise use BufferedInputStream
            if (read(this.tmp, 0, 1) == -1) {
                return -1;
            }
            return this.tmp[0] & 0xFF;
        }
    
        /**
         * Reads up to b.length bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                                 * because it specifies addr
                                 */
                request.addr = addr; /* if addr ends with 255 flag it bcast */
                request.isBroadcast = addr.getAddress()[3] == (byte) 0xFF;
    
                n = RETRY_COUNT;
                do {
                    try {
                        send(request, response, RETRY_TIMEOUT);
                    } catch (final IOException ioe) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top