Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 247 for bytes (0.19 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

        }
    
    /**
     * Reads up to b.length bytes of data from this input stream into an array of bytes.
     *
     * @throws IOException if a network error occurs
     */
    
        public int read( byte[] b ) throws IOException {
            return read( b, 0, b.length );
        }
    
    /**
     * Reads up to len bytes of data from this input stream into an array of bytes.
     *
     * @throws IOException if a network error occurs
     */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileInputStream.java

        }
    
    
        /**
         * Reads up to b.length bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public int read ( byte[] b ) throws IOException {
            return read(b, 0, b.length);
        }
    
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbRandomAccess.java

         * 
         * @param b
         *            buffer
         * @param off
         *            offset into buffer
         * @param len
         *            read up to <tt>len</tt> bytes
         * @return number of bytes read
         * @throws SmbException
         */
        int read ( byte[] b, int off, int len ) throws SmbException;
    
    
        /**
         * Current position in file
         * 
         * @return current position
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type2Message.java

        private byte[] challenge;
        private String target;
        private byte[] context;
        private byte[] targetInformation;
    
        private static final Map<String, byte[]> TARGET_INFO_CACHE = new HashMap<>();
    
    
        private static byte[] getDefaultTargetInfo ( CIFSContext tc ) {
            String domain = tc.getConfig().getDefaultDomain();
            byte[] ti = TARGET_INFO_CACHE.get(domain);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                    byte[] userSessionKey = hmac.digest();
    
                    if ((getFlags() & NTLMSSP_NEGOTIATE_KEY_EXCH) != 0) {
                        masterKey = new byte[16];
                        RANDOM.nextBytes(masterKey);
    
                        byte[] exchangedKey = new byte[16];
                        RC4 rc4 = new RC4(userSessionKey);
                        rc4.update(masterKey, 0, 16, exchangedKey, 0);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmUtil.java

        };
    
    
        /*
         * Accepts key multiple of 7
         * Returns enc multiple of 8
         * Multiple is the same like: 21 byte key gives 24 byte result
         */
        static void E ( byte[] key, byte[] data, byte[] e ) throws ShortBufferException {
            byte[] key7 = new byte[7];
            byte[] e8 = new byte[8];
    
            for ( int i = 0; i < key.length / 7; i++ ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 9.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/EnumTest.java

                    // + 8 byte query response overhead
                    // + 110 bytes entry
                    // -> 1022 predicted message size <= 1023 maximum buffer size
                    // 112 bytes to alignment
                    // -> aligned to 1024 > 1023 maximum buffer size
    
                    // 110 byte entry = 16 byte name = 8 char length
                    try ( SmbResource r = f.resolve(repeat('Y', 8)) ) {
                        r.createNewFile();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

                throw new IORuntimeException(e);
            }
        }
    
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SigningDigest.java

         */
        boolean verify(byte[] data, int offset, ServerMessageBlock response) {
            update(macSigningKey, 0, macSigningKey.length);
            int index = offset;
            update(data, index, ServerMessageBlock.SIGNATURE_OFFSET); 
            index += ServerMessageBlock.SIGNATURE_OFFSET;
            byte[] sequence = new byte[8]; 
            ServerMessageBlock.writeInt4(response.signSeq, sequence, 0); 
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/MemoryUtil.java

            } else if (size.divide(ONE_KB_BI).compareTo(BigInteger.ZERO) > 0) {
                displaySize = new BigDecimal(size).divide(BigDecimal.valueOf(1000)) + "KB";
            } else {
                displaySize = size + "bytes";
            }
            return displaySize;
        }
    
        public static long getUsedMemory() {
            final Runtime runtime = Runtime.getRuntime();
            final long freeBytes = runtime.freeMemory();
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top