Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for dec_utf8 (0.11 sec)

  1. src/main/java/jcifs/util/Encdec.java

                    dst[ di++ ] = (byte) ( 0x80 | ( ( ch >> 0 ) & 0x3F ) );
                }
            }
    
            return di - start;
        }
    
    
        public static String dec_utf8 ( byte[] src, int si, int slim ) throws IOException {
            char[] uni = new char[slim - si];
            int ui, ch;
    
            for ( ui = 0; si < slim && ( ch = src[ si++ ] & 0xFF ) != 0; ui++ ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
    
        public final String readUTF() throws SmbException {
            int size = readUnsignedShort();
            byte[] b = new byte[size];
            read( b, 0, size );
            try {
                return Encdec.dec_utf8( b, 0, size );
            } catch( IOException ioe ) {
                throw new SmbException( "", ioe );
            }
        }
        public final void writeBoolean( boolean v ) throws SmbException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/Encdec.java

                    dst[di++] = (byte)(0x80 | ((ch >>  0) & 0x3F)); 
                }
            }
    
            return di - start;
        }
        public static String dec_utf8( byte[] src, int si, int slim ) throws IOException {
            char[] uni = new char[slim - si];
            int ui, ch;
    
            for( ui = 0; si < slim && (ch = src[si++] & 0xFF) != 0; ui++ ) {
                if( ch < 0x80 ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        @Override
        public final String readUTF () throws SmbException {
            int size = readUnsignedShort();
            byte[] b = new byte[size];
            read(b, 0, size);
            try {
                return Encdec.dec_utf8(b, 0, size);
            }
            catch ( IOException ioe ) {
                throw new SmbException("", ioe);
            }
        }
    
    
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (1)
Back to top