Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for Peeker (0.27 sec)

  1. src/internal/zstd/zstd.go

    		return nil
    	}
    
    	if seeker, ok := r.r.(io.Seeker); ok {
    		r.blockOffset += int64(relativeOffset)
    		// Implementations of Seeker do not always detect invalid offsets,
    		// so check that the new offset is valid by comparing to the end.
    		prev, err := seeker.Seek(0, io.SeekCurrent)
    		if err != nil {
    			return r.wrapError(0, err)
    		}
    		end, err := seeker.Seek(0, io.SeekEnd)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/net/http/fs.go

    // served by the [FileServer] implementation.
    //
    // The methods should behave the same as those on an [*os.File].
    type File interface {
    	io.Closer
    	io.Reader
    	io.Seeker
    	Readdir(count int) ([]fs.FileInfo, error)
    	Stat() (fs.FileInfo, error)
    }
    
    type anyDirs interface {
    	len() int
    	name(i int) string
    	isDir(i int) bool
    }
    
    type fileInfoDirs []fs.FileInfo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r70/TestDisplayNameJUnit5CrossVersionSpec.groovy

                                    test("throwsExceptionWhenPeeked()") {
                                        operationDisplayName "throws EmptyStackException when peeked"
                                        testDisplayName "throws EmptyStackException when peeked"
                                    }
                                    test("throwsExceptionWhenPopped()") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. src/io/io.go

    type ReadSeeker interface {
    	Reader
    	Seeker
    }
    
    // ReadSeekCloser is the interface that groups the basic Read, Seek and Close
    // methods.
    type ReadSeekCloser interface {
    	Reader
    	Seeker
    	Closer
    }
    
    // WriteSeeker is the interface that groups the basic Write and Seek methods.
    type WriteSeeker interface {
    	Writer
    	Seeker
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. src/syscall/fs_js.go

    	nodeEXCL   = constants.Get("O_EXCL").Int()
    )
    
    type jsFile struct {
    	path    string
    	entries []string
    	dirIdx  int // entries[:dirIdx] have already been returned in ReadDirent
    	pos     int64
    	seeked  bool
    }
    
    var filesMu sync.Mutex
    var files = map[int]*jsFile{
    	0: {},
    	1: {},
    	2: {},
    }
    
    func fdToFile(fd int) (*jsFile, error) {
    	filesMu.Lock()
    	f, ok := files[fd]
    	filesMu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Response.kt

       * a modest limit on `byteCount`, such as 1 MiB.
       */
      @Throws(IOException::class)
      fun peekBody(byteCount: Long): ResponseBody {
        val peeked = body.source().peek()
        val buffer = Buffer()
        peeked.request(byteCount)
        buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
        return buffer.asResponseBody(body.contentType(), buffer.size)
      }
    
      @JvmName("-deprecated_body")
      @Deprecated(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/bean/DefaultPropertyWalkerTest.groovy

            def cycle = new Tree(value: "cycle", left: new Tree(value: "left"))
            cycle.right = cycle
            task.nested = new Tree(value: "first", left: new Tree(value: "left"), right: new Tree(value: "deeper", left: cycle, right: new Tree(value: "no-cycle")))
    
            when:
            visitProperties(task)
    
            then:
            _ * visitor.visitNested() >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. src/embed/embed.go

    		jdir, _, _ := split(files[j].name)
    		return jdir > dir
    	})
    	return files[i:j]
    }
    
    // Open opens the named file for reading and returns it as an [fs.File].
    //
    // The returned file implements [io.Seeker] and [io.ReaderAt] when the file is not a directory.
    func (f FS) Open(name string) (fs.File, error) {
    	file := f.lookup(name)
    	if file == nil {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    	// io.CopyN done shortly afterwards to trigger any IO errors.
    	var seekSkipped int64 // Number of bytes skipped via Seek
    	if sr, ok := r.(io.Seeker); ok && n > 1 {
    		// Not all io.Seeker can actually Seek. For example, os.Stdin implements
    		// io.Seeker, but calling Seek always returns an error and performs
    		// no action. Thus, we try an innocent seek to the current position
    		// to see if Seek is really supported.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandlerTest.groovy

    HTMLReader.SpecialAction action = null
    """,
                "javax.swing.text.html.HTMLDocument.HTMLReader.SpecialAction action = null",
                """
    class Outer {
        class Inner {
             class Deeper {
             }
        }
    }
    Outer.Inner.Deeper weMustGoDeeper = null
    """
            ]
        }
    
        private void checkScriptClassesInCache(boolean empty = false) {
            assertTrue(scriptCacheDir.isDirectory())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 08:24:10 UTC 2023
    - 19.4K bytes
    - Viewed (0)
Back to top