Search Options

Results per page
Sort
Preferred Languages
Advance

Results 911 - 920 of 1,693 for byte2 (0.01 sec)

  1. src/main/java/jcifs/internal/smb1/trans/TransWaitNamedPipe.java

            this.maxDataCount = 0;
            this.maxSetupCount = (byte) 0x00;
            this.setupCount = 2;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = this.getSubCommand();
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            dst[dstIndex++] = (byte) 0x00; // no FID
            dst[dstIndex++] = (byte) 0x00;
            return 4;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

            fileInputStream.reset();
        }
    
        /**
         * Skips over and discards {@code n} bytes of data from this input stream.
         * This method delegates to {@link FileInputStream#skip(long)}.
         *
         * @param n the number of bytes to be skipped
         * @return the actual number of bytes skipped
         * @throws IOException if an I/O error occurs.
         */
        @Override
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

        void testConstructorEmptyPac() {
            byte[] emptyToken = new byte[0];
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> {
                new KerberosPacAuthData(emptyToken, keys);
            });
            assertTrue(e.getMessage().contains("PAC"));
        }
    
        // Test exception for short PAC
        @Test
        void testConstructorShortPac() {
            byte[] shortToken = new byte[7];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2FindNext2.java

            this.filename = lastName;
            flags2 = 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(sid, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

    import org.junit.jupiter.api.Test;
    
    class AvPairTest {
    
        @Test
        void testConstructorAndGetters() {
            // Test with a valid type and raw data
            int type = AvPair.MsvAvTimestamp;
            byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            AvPair avPair = new AvPair(type, raw);
    
            assertEquals(type, avPair.getType(), "Type should match the constructor argument.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

         */
        @Override
        public int getContextType() {
            return NEGO_CTX_ENC_TYPE;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.ciphers != null ? this.ciphers.length : 0, dst, dstIndex);
            dstIndex += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. cmd/sftp-server_test.go

    	username string
    }
    
    func (m *MockConnMeta) User() string {
    	return m.username
    }
    
    func (m *MockConnMeta) SessionID() []byte {
    	return []byte{}
    }
    
    func (m *MockConnMeta) ClientVersion() []byte {
    	return []byte{}
    }
    
    func (m *MockConnMeta) ServerVersion() []byte {
    	return []byte{}
    }
    
    func (m *MockConnMeta) RemoteAddr() net.Addr {
    	return nil
    }
    
    func (m *MockConnMeta) LocalAddr() net.Addr {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 27 18:43:32 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChange.java

            return dstIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.trans.SmbComTransaction#writeParametersWireFormat(byte[], int)
         */
        @Override
        protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

            // SMB_COM_LOGOFF_ANDX = 0x74
            assertEquals((byte) 0x74, msg.command, "Command should be SMB_COM_LOGOFF_ANDX");
        }
    
        @Test
        @DisplayName("constructor with mock andx properly sets andx field")
        void constructorWithMockAndx() {
            // Create a mock ServerMessageBlock
            ServerMessageBlock mockAndx = mock(ServerMessageBlock.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

            this.hashAlgos = hashAlgos;
            this.salt = salt;
        }
    
        /**
         * Default constructor for deserialization.
         */
        public PreauthIntegrityNegotiateContext() {
        }
    
        /**
         * Gets the salt value used for preauth integrity.
         *
         * @return the salt
         */
        public byte[] getSalt() {
            return this.salt;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top