Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for sendfile (0.07 seconds)

  1. cmd/xl-storage_test.go

    		}
    	}
    
    	{
    		buf := make([]byte, 5)
    		// Test for negative offset.
    		if _, err = xlStorage.ReadFile(t.Context(), volume, "myobject", -1, buf, v); err == nil {
    			t.Fatalf("expected: error, got: <nil>")
    		}
    	}
    
    	for range 2 {
    		// Following block validates all ReadFile test cases.
    		for i, testCase := range testCases {
    			var n int64
    			// Common read buffer.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 66K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                    Throwable error = null;
    
                    if (project == null) {
                        project = new MavenProject();
                        project.setFile(pomFile != null ? pomFile.toFile() : null);
    
                        boolean reactorMember = pomFile != null
                                && session.getProjects() != null // this is for UTs
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  3. cmd/xl-storage.go

    // tries to verify whether the disk has bitrot.
    //
    // Additionally ReadFile also starts reading from an offset. ReadFile
    // semantics are same as io.ReadFull.
    func (s *xlStorage) ReadFile(ctx context.Context, volume string, path string, offset int64, buffer []byte, verifier *BitrotVerifier) (int64, error) {
    	if offset < 0 {
    		return 0, errInvalidArgument
    	}
    
    	volumeDir, err := s.getVolDir(volume)
    	if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 91.7K bytes
    - Click Count (0)
  4. src/archive/zip/reader_test.go

    			path = tf
    		}
    		var rc *ReadCloser
    		rc, err = OpenReader(path)
    		if err == nil {
    			defer rc.Close()
    			z = &rc.Reader
    		}
    		var err2 error
    		raw, err2 = os.ReadFile(path)
    		if err2 != nil {
    			t.Errorf("ReadFile(%s) error=%v", path, err2)
    			return
    		}
    	}
    	if err != zt.Error {
    		t.Errorf("error=%v, want %v", err, zt.Error)
    		return
    	}
    
    	// bail if file is not zip
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Oct 17 20:10:27 GMT 2025
    - 56.5K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

      fun explicitRemoveAppliedToDiskImmediately() {
        val editor = cache.edit("k1")!!
        editor.setString(0, "ABC")
        editor.setString(1, "B")
        editor.commit()
        val k1 = getCleanFile("k1", 0)
        assertThat(readFile(k1)).isEqualTo("ABC")
        cache.remove("k1")
        assertThat(filesystem.exists(k1)).isFalse()
      }
    
      @Test
      fun removePreventsActiveEditFromStoringAValue() {
        set("a", "a", "a")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 59.4K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

            this.parent = parent;
        }
    
        public boolean hasParent() {
            return getParent() != null;
        }
    
        public File getFile() {
            return file;
        }
    
        public void setFile(File file) {
            this.file = file;
            this.basedir = file != null ? file.getParentFile() : null;
        }
    
        /**
         * Sets project {@code file} without changing project {@code basedir}.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Aug 29 12:47:20 GMT 2025
    - 67K bytes
    - Click Count (0)
Back to Top