Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for smallReaddirnames (0.12 sec)

  1. src/os/os_test.go

    }
    
    func BenchmarkLstatDir(b *testing.B) {
    	benchmarkLstat(b, filepath.Join(runtime.GOROOT(), "src/os"))
    }
    
    // Read the directory one entry at a time.
    func smallReaddirnames(file *File, length int, t *testing.T) []string {
    	names := make([]string, length)
    	count := 0
    	for {
    		d, err := file.Readdirnames(1)
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top