Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,736 for toRead (0.32 sec)

  1. maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

        }
    
        @Test
        void testReadParentAndChildWithRegularVersionSetParentFile() throws Exception {
            List<File> toRead = new ArrayList<>(2);
            File parentPom = getProject("MNG-6723");
            toRead.add(parentPom);
            toRead.add(new File(parentPom.getParentFile(), "child/pom.xml"));
            MavenSession mavenSession = createMavenSession(null);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 09:06:12 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. src/compress/lzw/reader.go

    func (r *Reader) Read(b []byte) (int, error) {
    	for {
    		if len(r.toRead) > 0 {
    			n := copy(b, r.toRead)
    			r.toRead = r.toRead[n:]
    			return n, nil
    		}
    		if r.err != nil {
    			return 0, r.err
    		}
    		r.decode()
    	}
    }
    
    // decode decompresses bytes from r and leaves them in d.toRead.
    // read specifies how to decode bytes into codes.
    // litWidth is the width in bits of literal codes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:39 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. src/compress/flate/inflate.go

    }
    
    func (f *decompressor) Read(b []byte) (int, error) {
    	for {
    		if len(f.toRead) > 0 {
    			n := copy(b, f.toRead)
    			f.toRead = f.toRead[n:]
    			if len(f.toRead) == 0 {
    				return n, f.err
    			}
    			return n, nil
    		}
    		if f.err != nil {
    			return 0, f.err
    		}
    		f.step(f)
    		if f.err != nil && len(f.toRead) == 0 {
    			f.toRead = f.dict.readFlush() // Flush what's left in case of error
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/streams/DefaultValueStore.java

                if (remaining == 0) {
                    return -1;
                }
                int toRead = (int) Math.min(length, remaining);
                if (toRead == 0) {
                    return 0;
                }
                int read = file.read(buffer, offset, toRead);
                if (read < 0) {
                    throw new IllegalStateException("Unexpected file length.");
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          source: Buffer,
          byteCount: Long,
        ) {
          val toRead = minOf(remainingByteCount, byteCount)
          if (toRead > 0L) {
            source.read(buffer, toRead)
          }
          val toSkip = byteCount - toRead
          if (toSkip > 0L) {
            source.skip(toSkip)
          }
          remainingByteCount -= toRead
          receivedByteCount += byteCount
        }
    
        @Throws(IOException::class)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  6. src/os/os_windows_test.go

    					s16 := utf16.Encode([]rune(s))
    					poll.ReadConsole = func(h syscall.Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) error {
    						if inputControl != nil {
    							t.Fatalf("inputControl not nil")
    						}
    						n := int(toread)
    						if n > consoleSize {
    							n = consoleSize
    						}
    						n = copy((*[10000]uint16)(unsafe.Pointer(buf))[:n:n], s16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. src/syscall/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) {
    	r1, _, e1 := Syscall6(procReadConsoleW.Addr(), 5, uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(toread), uintptr(unsafe.Pointer(read)), uintptr(unsafe.Pointer(inputControl)), 0)
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  8. src/syscall/syscall_windows.go

    //sys	WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
    //sys	ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW
    //sys	CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) {
    	r1, _, e1 := syscall.Syscall6(procReadConsoleW.Addr(), 5, uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(toread), uintptr(unsafe.Pointer(read)), uintptr(unsafe.Pointer(inputControl)), 0)
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    // GetCurrentThread returns the handle for the current thread.
    // It is a pseudo handle that does not need to be closed.
    // The returned error is always nil.
    //
    // Deprecated: use CurrentThread for the same Handle without the nil
    // error.
    func GetCurrentThread() (Handle, error) {
    	return CurrentThread(), nil
    }
    
    // CurrentThread returns the handle for the current thread.
    // It is a pseudo handle that does not need to be closed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top