Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for fh (0.01 sec)

  1. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(pipe.openUnshared(anyString(), anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh);
            when(fh.acquire()).thenReturn(fh);
            lenient().when(fh.isValid()).thenReturn(true);
            lenient().when(fh.getTree()).thenReturn(tree);
            when(fh.getFileId()).thenReturn(new byte[16]);
    
            // Setup for ioctl request
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            when(file.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh);
            when(fh.acquire()).thenReturn(fh);
            when(fh.isValid()).thenReturn(true);
            when(fh.getTree()).thenReturn(tree);
            when(fh.getFileId()).thenReturn(new byte[16]);
            when(fh.getFid()).thenReturn(1);
    
            // build via package-private constructor to control unshared flag
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

                try (SmbFileHandleImpl fh = ensureOpen()) {
                    if (append) {
                        this.fp = fh.getInitialSize();
                    }
                    init(th);
                    if (!append && this.smb2) {
                        // no open option for truncating, need to truncate the file
                        final Smb2SetInfoRequest treq = new Smb2SetInfoRequest(th.getConfig(), fh.getFileId());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/archive/zip/struct.go

    	size := fi.Size()
    	fh := &FileHeader{
    		Name:               fi.Name(),
    		UncompressedSize64: uint64(size),
    	}
    	fh.SetModTime(fi.ModTime())
    	fh.SetMode(fi.Mode())
    	if fh.UncompressedSize64 > uint32max {
    		fh.UncompressedSize = uint32max
    	} else {
    		fh.UncompressedSize = uint32(fh.UncompressedSize64)
    	}
    	return fh, nil
    }
    
    type directoryEnd struct {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. src/archive/zip/writer.go

    	}
    
    	// update FileHeader
    	fh := w.header.FileHeader
    	fh.CRC32 = w.crc32.Sum32()
    	fh.CompressedSize64 = uint64(w.compCount.count)
    	fh.UncompressedSize64 = uint64(w.rawCount.count)
    
    	if fh.isZip64() {
    		fh.CompressedSize = uint32max
    		fh.UncompressedSize = uint32max
    		fh.ReaderVersion = zipVersion45 // requires 4.5 - File uses ZIP64 format extensions
    	} else {
    		fh.CompressedSize = uint32(fh.CompressedSize64)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            // ensure file is open
            try (SmbFileHandleImpl fh = ensureOpen(); SmbTreeHandleImpl th = fh.getTree()) {
                int w;
                do {
                    w = len > this.writeSize ? this.writeSize : len;
                    long cnt;
    
                    if (th.isSMB2()) {
                        final Smb2WriteRequest request = new Smb2WriteRequest(th.getConfig(), fh.getFileId());
                        request.setOffset(this.fp);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/archive/zip/zip_test.go

    		ModifiedDate:     5678,
    	}
    	testHeaderRoundTrip(fh, fh.UncompressedSize, uint64(fh.UncompressedSize), t)
    }
    
    func TestFileHeaderRoundTrip64(t *testing.T) {
    	fh := &FileHeader{
    		Name:               "foo.txt",
    		UncompressedSize64: 9876543210,
    		ModifiedTime:       1234,
    		ModifiedDate:       5678,
    	}
    	testHeaderRoundTrip(fh, uint32max, fh.UncompressedSize64, t)
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

            try (SmbFileHandleImpl fh = ensureOpen(); SmbTreeHandleImpl th = fh.getTree()) {
    
                if (th.isSMB2()) {
                    final Smb2IoctlRequest req =
                            new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE, fh.getFileId(), inB);
                    req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileInputStream.java

            }
        }
    
        /**
         * @throws SmbException
         *
         */
        SmbFileInputStream(final SmbFile file, final SmbTreeHandleImpl th, final SmbFileHandleImpl fh) throws SmbException {
            this.file = file;
            this.handle = fh;
            this.unsharedFile = false;
            this.smb2 = th.isSMB2();
            try {
                init(th);
            } catch (final CIFSException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            assertFalse(target.isOpen());
            assertFalse(target.isStale());
    
            // After ensureOpen, handle valid -> open
            SmbFileHandleImpl fh = target.ensureOpen();
            assertSame(fileHandle, fh);
            assertTrue(target.isOpen());
            assertFalse(target.isStale());
    
            // If handle becomes invalid, reflect stale
            when(fileHandle.isValid()).thenReturn(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top