Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for assignment (0.56 sec)

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

        }
        int writeString( String str, byte[] dst, int dstIndex, boolean useUnicode ) {
            int start = dstIndex;
    
            try {
                if( useUnicode ) {
                    // Unicode requires word alignment
                    if((( dstIndex - headerStart ) % 2 ) != 0 ) {
                        dst[dstIndex++] = (byte)'\0';
                    }
                    System.arraycopy( str.getBytes( UNI_ENCODING ), 0,
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 21K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

        }
    
        String readString( byte[] src, int srcIndex, int len ) {
            String str = null;
            try {
                if( useUnicode ) {
                    // should Unicode alignment be corrected for here?
                    str = new String( src, srcIndex, len, UNI_ENCODING );
                } else {
        
                    /* On NT without Unicode the fileNameLength
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java

                                            /* 6 zeros observed with NT */
            writeInt8( 0L, dst, dstIndex ); dstIndex += 6;
    
                    /* Also observed 4 byte alignment but we stick
                     * with the default for jCIFS which is 2 */
    
            return dstIndex - start;
        }
        int readSetupWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/EnumTest.java

                    // == 5*128 = 640
    
                    // . and .. entries = 200 byte (includes alignment)
    
                    // + 64 byte header
                    // + 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
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

            dstIndex += this.info.encode(dst, dstIndex);
    
            /* 6 zeros observed with NT */
            SMBUtil.writeInt8(0L, dst, dstIndex);
            dstIndex += 6;
    
            /*
             * Also observed 4 byte alignment but we stick
             * with the default for jCIFS which is 2
             */
    
            return dstIndex - start;
        }
    
    
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        }
    
    
        protected int writeString ( String str, byte[] dst, int dstIndex, boolean unicode ) {
            int start = dstIndex;
            if ( unicode ) {
                // Unicode requires word alignment
                if ( ( ( dstIndex - this.headerStart ) % 2 ) != 0 ) {
                    dst[ dstIndex++ ] = (byte) '\0';
                }
                System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
Back to top