Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 181 for readSize (0.07 sec)

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

                file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options );
            }
    
            int r, n;
            SmbComReadAndXResponse response = new SmbComReadAndXResponse( b, off );
            do {
                r = len > readSize ? readSize : len;
                file.send( new SmbComReadAndX( file.fid, fp, r, null ), response );
                if(( n = response.dataLength ) <= 0 ) {
                    return (int)((fp - start) > 0L ? fp - start : -1);
                }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            if( file.type == SmbFile.TYPE_NAMED_PIPE ) {
                response.responseTimeout = 0;
            }
    
            int r, n;
            do {
                r = len > readSize ? readSize : len;
    
                if( file.log.level >= 4 )
                    file.log.println( "read: len=" + len + ",r=" + r + ",fp=" + fp );
    
                try {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
        private void init ( SmbTreeHandleInternal th ) throws CIFSException {
            if ( this.smb2 ) {
                this.readSize = th.getReceiveBufferSize();
                this.readSizeFile = th.getReceiveBufferSize();
                return;
            }
    
            this.readSize = Math.min(th.getReceiveBufferSize() - 70, th.getMaximumBufferSize() - 70);
    
            if ( th.hasCapability(SmbConstants.CAP_LARGE_READX) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

         */
        public final int getNextCommandOffset () {
            return this.nextCommand;
        }
    
    
        /**
         * @param readSize
         *            the readSize to set
         */
        public void setReadSize ( int readSize ) {
            this.readSize = readSize;
        }
    
    
        /**
         * @return the async
         */
        public boolean isAsync () {
            return this.async;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Sep 30 10:47:31 UTC 2018
    - 19.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                }
    
                try ( SmbFileHandle h = ensureOpen() ) {}
                this.readSize = th.getReceiveBufferSize() - 70;
                this.writeSize = th.getSendBufferSize() - 70;
    
                if ( th.hasCapability(SmbConstants.CAP_LARGE_READX) ) {
                    this.largeReadX = true;
                    this.readSize = Math.min(th.getConfig().getReceiveBufferSize() - 70, th.areSignaturesActive() ? 0xFFFF - 70 : 0xFFFFFF - 70);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  6. internal/ioutil/read_file.go

    	_, err = io.ReadFull(f, dst)
    	return dst, st, err
    }
    
    // ReadFile reads the named file and returns the contents.
    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    //
    // passes NOATIME flag for reads on Unix systems to avoid atime updates.
    func ReadFile(name string) ([]byte, error) {
    	// Don't wrap with un-needed buffer.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/fscc/FileBasicInfo.java

            int start = bufferIndex;
            this.createTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.lastAccessTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.lastWriteTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.changeTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            SmbQueryFileBasicInfo info = new SmbQueryFileBasicInfo();
            info.createTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
            info.lastAccessTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
            info.lastWriteTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
            info.changeTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndXResponse.java

            bufferIndex += 4;
            creationTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
            lastAccessTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
            lastWriteTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
            changeTime = readTime( buffer, bufferIndex );
            bufferIndex += 8;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CloseResponse.java

            bufferIndex += 4; // Reserved
            this.creationTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.lastAccessTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.lastWriteTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.changeTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.5K bytes
    - Viewed (0)
Back to top