Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 113 for readdir (0.13 sec)

  1. src/encoding/base64/base64.go

    	}
    
    	// This code assumes that d.r strips supported whitespace ('\r' and '\n').
    
    	// Refill buffer.
    	for d.nbuf < 4 && d.readErr == nil {
    		nn := len(p) / 3 * 4
    		if nn < 4 {
    			nn = 4
    		}
    		if nn > len(d.buf) {
    			nn = len(d.buf)
    		}
    		nn, d.readErr = d.r.Read(d.buf[d.nbuf:nn])
    		d.nbuf += nn
    	}
    
    	if d.nbuf < 4 {
    		if d.enc.padChar == NoPadding && d.nbuf > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/dist/util.go

    func xremoveall(p string) {
    	if vflag > 2 {
    		errprintf("rm -r %s\n", p)
    	}
    	os.RemoveAll(p)
    }
    
    // xreaddir replaces dst with a list of the names of the files and subdirectories in dir.
    // The names are relative to dir; they are not full paths.
    func xreaddir(dir string) []string {
    	f, err := os.Open(dir)
    	if err != nil {
    		fatalf("%v", err)
    	}
    	defer f.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/encoding/base32/base32_test.go

    		// error is returned.
    		{r: badReader{data: []byte("MY====="), errs: []error{badErr}},
    			res: "", err: badErr},
    		// Reader returns invalid input data (too short) but no error.  Verify io.ErrUnexpectedEOF
    		// is returned.
    		{r: badReader{data: []byte("MY====="), errs: []error{nil}},
    			res: "", err: io.ErrUnexpectedEOF},
    		// Reader returns invalid input data and an error.  Verify the reader and not the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. src/compress/bzip2/bzip2.go

    	repeats     uint     // the number of copies of lastByte to output.
    }
    
    // NewReader returns an io.Reader which decompresses bzip2 data from r.
    // If r does not also implement [io.ByteReader],
    // the decompressor may read more data than necessary from r.
    func NewReader(r io.Reader) io.Reader {
    	bz2 := new(reader)
    	bz2.br = newBitReader(r)
    	return bz2
    }
    
    const bzip2FileMagic = 0x425a // "BZ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. cmd/metrics-resource.go

    	diffStats := getDiffStats(latestStats, currentStats)
    
    	updateResourceMetrics(driveSubsystem, readsPerSec, float64(diffStats.ReadIOs)/diffInSeconds, labels, false)
    	readKib := float64(diffStats.ReadSectors*sectorSize) / kib
    	updateResourceMetrics(driveSubsystem, readsKBPerSec, readKib/diffInSeconds, labels, false)
    
    	updateResourceMetrics(driveSubsystem, writesPerSec, float64(diffStats.WriteIOs)/diffInSeconds, labels, false)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 15:15:13 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modfetch/codehost/codehost.go

    	//
    	// If the requested file does not exist it should return an error for which
    	// os.IsNotExist(err) returns true.
    	ReadFile(ctx context.Context, rev, file string, maxSize int64) (data []byte, err error)
    
    	// ReadZip downloads a zip file for the subdir subdirectory
    	// of the given revision to a new file in a given temporary directory.
    	// It should refuse to read more than maxSize bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go

    // it in our own nicer implementation, either here or in
    // syscall_bsd.go or syscall_unix.go.
    
    package unix
    
    import (
    	"fmt"
    	"syscall"
    	"unsafe"
    )
    
    //sys	closedir(dir uintptr) (err error)
    //sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
    
    func fdopendir(fd int) (dir uintptr, err error) {
    	r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
    	dir = uintptr(r0)
    	if e1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileProcessorTest.groovy

            sourceAdded(file3, [dep4])
            modified(dep4)
    
            then:
            checkCompile recompiled: [source2, file3], removed: []
        }
    
        def "detects source file removed then readded"() {
            given:
            initialFiles()
    
            when:
            sourceRemoved(source2)
            graph.remove(dep4)
    
            then:
            checkCompile recompiled: [], removed: [source2]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:31:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. internal/config/cache/remote_gen.go

    			}
    		case "IfNoneMatch":
    			z.IfNoneMatch, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "IfNoneMatch")
    				return
    			}
    		case "IfModifiedSince":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "IfModifiedSince")
    					return
    				}
    				z.IfModifiedSince = nil
    			} else {
    				if z.IfModifiedSince == nil {
    					z.IfModifiedSince = new(time.Time)
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td

        $num_bits, $range_given, $round_mode, $narrow_range, $axis),
      [], [(CopyAttrs $src, $dest)]>;
    
    //===----------------------------------------------------------------------===//
    // RealDiv op patterns.
    //===----------------------------------------------------------------------===//
    
    def RealDivWithSqrtDivisor : Pat<
      (TF_RealDivOp:$src $arg0, (TF_SqrtOp $arg1)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top