Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newLength (0.07 sec)

  1. src/test/java/jcifs/tests/RandomAccessFileTest.java

            try ( SmbFile f = createTestFile() ) {
                try {
                    long newLength = 4096L;
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) {
                        raf.setLength(newLength);
                    }
                    assertEquals(newLength, f.length());
                }
                finally {
                    f.delete();
                }
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

    
        @Override
        public void setLength ( long newLength ) throws SmbException {
            try ( SmbFileHandleImpl fh = ensureOpen();
                  SmbTreeHandleImpl th = fh.getTree() ) {
                if ( th.isSMB2() ) {
                    Smb2SetInfoRequest req = new Smb2SetInfoRequest(th.getConfig(), fh.getFileId());
                    req.setFileInformation(new FileEndOfFileInformation(newLength));
                    th.send(req, RequestParam.NO_RETRY);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            return file.length();
        }
        public void setLength( long newLength ) throws SmbException {
            // ensure file is open
            if( file.isOpen() == false ) {
                file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options );
            }
            SmbComWriteResponse rsp = new SmbComWriteResponse();
            file.send( new SmbComWrite( file.fid, (int)(newLength & 0xFFFFFFFFL), 0, tmp, 0, 0 ), rsp );
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

              fileSystem.atomicMove(dirty, clean)
              val oldLength = entry.lengths[i]
              // TODO check null behaviour
              val newLength = fileSystem.metadata(clean).size ?: 0
              entry.lengths[i] = newLength
              size = size - oldLength + newLength
            }
          } else {
            fileSystem.deleteIfExists(dirty)
          }
        }
    
        entry.currentEditor = null
        if (entry.zombie) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedSet.java

             * is at least expandedCapacity(n, n + 1) satisfies this property.
             */
            int newLength = ImmutableCollection.Builder.expandedCapacity(n, n + 1);
            if (newLength > elements.length) {
              elements = Arrays.copyOf(elements, newLength);
            }
          }
          elements[n++] = element;
          return this;
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
Back to top