Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for readStringLength (0.15 sec)

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

            return 2;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            int start = bufferIndex;
    
            int len = readStringLength( buffer, bufferIndex, 32 );
            try {
                service = new String( buffer, bufferIndex, len, "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java

            return 2;
        }
    
    
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) {
            int start = bufferIndex;
    
            int len = readStringLength(buffer, bufferIndex, 32);
            try {
                this.service = new String(buffer, bufferIndex, len, "ASCII");
            }
            catch ( UnsupportedEncodingException uee ) {
                return 0;
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

            int len = str.length() + 1;
            if( useUnicode ) {
                len = str.length() * 2 + 2;
                len = ( offset % 2 ) != 0 ? len + 1 : len;
            }
            return len;
        }
        int readStringLength( byte[] src, int srcIndex, int max ) {
            int len = 0;
            while( src[srcIndex + len] != (byte)0x00 ) {
                if( len++ > max ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 21K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            if ( this.useUnicode ) {
                len = str.length() * 2 + 2;
                len = ( offset % 2 ) != 0 ? len + 1 : len;
            }
            return len;
        }
    
    
        protected int readStringLength ( byte[] src, int srcIndex, int max ) {
            int len = 0;
            while ( src[ srcIndex + len ] != (byte) 0x00 ) {
                if ( len++ > max ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
Back to top