Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for stringWireLength (0.24 sec)

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

            bufferIndex += stringWireLength( nativeOs, bufferIndex );
            nativeLanMan = readString( buffer, bufferIndex, start + byteCount, 255, useUnicode );
            bufferIndex += stringWireLength( nativeLanMan, bufferIndex );
            if (!extendedSecurity) {
                primaryDomain = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
                bufferIndex += stringWireLength(primaryDomain, bufferIndex);
            }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXResponse.java

            }
    
            this.nativeOs = readString(buffer, bufferIndex);
            bufferIndex += stringWireLength(this.nativeOs, bufferIndex);
            this.nativeLanMan = readString(buffer, bufferIndex, start + this.byteCount, 255, this.isUseUnicode());
            bufferIndex += stringWireLength(this.nativeLanMan, bufferIndex);
            if ( !this.isExtendedSecurity() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java

     * Fortunately we don't really need nativeFileSystem for anything.
            if( byteCount > bufferIndex - start ) {
                nativeFileSystem = readString( buffer, bufferIndex );
                bufferIndex += stringWireLength( nativeFileSystem, bufferIndex );
            }
    */
    
            return bufferIndex - start;
        }
        public String toString() {
            String result = new String( "SmbComTreeConnectAndXResponse[" +
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java

             * Fortunately we don't really need nativeFileSystem for anything.
             * if( byteCount > bufferIndex - start ) {
             * nativeFileSystem = readString( buffer, bufferIndex );
             * bufferIndex += stringWireLength( nativeFileSystem, bufferIndex );
             * }
             */
    
            return bufferIndex - start;
        }
    
    
        @Override
        public String toString () {
            String result = new String(
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                if (command != SMB_COM_NT_TRANSACT) {
                    if( command == SMB_COM_TRANSACTION && isResponse() == false ) {
                        parameterOffset += stringWireLength( name, parameterOffset );
                    }
                } else if (command == SMB_COM_NT_TRANSACT) {
                    parameterOffset += 2;
                }
                pad = parameterOffset % PADDING_SIZE;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                this.parameterOffset += 2; // ByteCount
    
                if ( this.getCommand() == SMB_COM_TRANSACTION && isResponse() == false ) {
                    this.parameterOffset += stringWireLength(this.name, this.parameterOffset);
                }
    
                this.pad1 = pad(this.parameterOffset);
                this.parameterOffset += this.pad1;
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun May 17 13:43:42 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                }
            } catch( UnsupportedEncodingException uee ) {
                if( log.level > 1 )
                    uee.printStackTrace( log );
            }
            return str;
        }
        int stringWireLength( String str, int offset ) {
            int len = str.length() + 1;
            if( useUnicode ) {
                len = str.length() * 2 + 2;
                len = ( offset % 2 ) != 0 ? len + 1 : len;
            }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 21K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        }
    
    
        /**
         * 
         * @param str
         * @param offset
         * @return string length
         */
        public int stringWireLength ( String str, int offset ) {
            int len = str.length() + 1;
            if ( this.useUnicode ) {
                len = str.length() * 2 + 2;
                len = ( offset % 2 ) != 0 ? len + 1 : len;
            }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 32.7K bytes
    - Viewed (0)
Back to top