Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 242 for bytes (0.15 sec)

  1. src/main/java/jcifs/smb1/util/Base64.java

         * Base-64 encodes the supplied block of data.  Line wrapping is not
         * applied on output.
         *
         * @param bytes The block of data that is to be Base-64 encoded.
         * @return A <code>String</code> containing the encoded data.
         */
        public static String encode(byte[] bytes) {
            int length = bytes.length;
            if (length == 0) return "";
            StringBuffer buffer =
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/MD4.java

            // padding is alwas binary 1 followed by binary 0s
            byte[] tail = new byte[padLen + 8];
            tail[0] = (byte)0x80;
    
            // append length before final transform:
            // save number of bits, casting the long to an array of 8 bytes
            // save low-order byte first.
            for (int i = 0; i < 8; i++)
                tail[padLen + i] = (byte)((count * 8) >>> (8 * i));
    
            engineUpdate(tail, 0, tail.length);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/curl/CurlResponse.java

        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
                while (length != -1) {
                    if (length != 0) {
                        baos.write(bytes, 0, length);
                    }
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/ByteEncodable.java

    /**
     * @author mbechler
     *
     */
    public class ByteEncodable implements Encodable {
    
        private byte[] bytes;
        private int off;
        private int len;
    
    
        /**
         * @param b
         * @param off
         * @param len
         */
        public ByteEncodable ( byte[] b, int off, int len ) {
            this.bytes = b;
            this.off = off;
            this.len = len;
        }
    
    
        /**
         * {@inheritDoc}
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                this.andxCommand = (byte) 0xFF;
                this.andx = null;
    
                dst[ start + ANDX_COMMAND_OFFSET ] = (byte) 0xFF;
                dst[ start + ANDX_RESERVED_OFFSET ] = (byte) 0x00;
                // dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
                // dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/DES.java

            (byte)22, (byte)18, (byte)11, (byte)3 , (byte)25, (byte) 7,
            (byte)15, (byte) 6, (byte)26, (byte)19, (byte)12, (byte) 1,
            (byte)40, (byte)51, (byte)30, (byte)36, (byte)46, (byte)54,
            (byte)29, (byte)39, (byte)50, (byte)44, (byte)32, (byte)47,
            (byte)43, (byte)48, (byte)38, (byte)55, (byte)33, (byte)52,
            (byte)45, (byte)41, (byte)49, (byte)35, (byte)28, (byte)31,
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 21.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/StringUtil.java

        }
    
        /**
         * 16進数の文字列に変換します。
         *
         * @param bytes
         *            バイトの配列
         * @return 16進数の文字列
         */
        public static String toHex(final byte[] bytes) {
            if (bytes == null) {
                return "";
            }
            final StringBuilder sb = new StringBuilder(bytes.length * 2);
            for (final byte b : bytes) {
                appendHex(sb, b);
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/SMBSigningDigest.java

         * Performs MAC signing of the SMB. This is done as follows.
         * The signature field of the SMB is overwritten with the sequence number;
         * The MD5 digest of the MAC signing key + the entire SMB is taken;
         * The first 8 bytes of this are placed in the signature field.
         *
         * @param data
         *            The data.
         * @param offset
         *            The starting offset at which the SMB header begins.
         * @param length
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 2.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

            return 0;
        }
    
    
        @Override
        protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) {
            // observed two zero bytes here with at least win98
            return 2;
        }
    
    
        @Override
        protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4K bytes
    - Viewed (0)
  10. 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 May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
Back to top