Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 171 for readSize (0.05 sec)

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

            }
    
            int r, n;
            final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off);
            do {
                r = len > readSize ? readSize : len;
                file.send(new SmbComReadAndX(file.fid, fp, r, null), response);
                n = response.dataLength;
                if (n <= 0) {
                    return (int) (fp - start > 0L ? fp - start : -1);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K 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 (LogStream.level >= 4) {
                    SmbFile.log.println("read: len=" + len + ",r=" + r + ",fp=" + fp);
                }
    
                try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            return this.nextCommand;
        }
    
        /**
         * Sets the read size for this message.
         *
         * @param readSize
         *            the readSize to set
         */
        public void setReadSize(final int readSize) {
            this.readSize = readSize;
        }
    
        /**
         * Checks whether this message is an asynchronous message.
         *
         * @return the async
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
        private void init(final 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K 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 =
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
    
            @Test
            @DisplayName("Should get and set read size")
            void testReadSizeProperty() {
                testMessage.setReadSize(1024);
                // No getter for readSize, but it's used internally in decode
            }
    
            @Test
            @DisplayName("Should check if async")
            void testAsyncProperty() {
                assertFalse(testMessage.isAsync());
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/util/SMBUtilTest.java

            SMBUtil.writeInt8(0L, src, 0);
            long time = SMBUtil.readTime(src, 0);
            assertEquals(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601, time);
    
            // Test with specific time value
            long testTime = 131768928000000000L; // Example Windows file time
            SMBUtil.writeInt8(testTime, src, 8);
            long readTime = SMBUtil.readTime(src, 8);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                assertEquals(60, bytesRead);
                // SMBUtil.readTime will handle the conversion
                assertEquals(SMBUtil.readTime(buffer, 8), response.getCreationTime());
                assertEquals(SMBUtil.readTime(buffer, 16), response.getLastAccessTime());
                assertEquals(SMBUtil.readTime(buffer, 24), response.getLastWriteTime());
                assertEquals(SMBUtil.readTime(buffer, 32), response.getChangeTime());
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndXResponse.java

            createAction = readInt4(buffer, bufferIndex);
            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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top