Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,234 for toRead (0.12 sec)

  1. src/cmd/internal/cov/mreader.go

    	if r.fileView != nil {
    		amt := len(p)
    		toread := r.fileView[r.off:]
    		if len(toread) < 1 {
    			return 0, io.EOF
    		}
    		if len(toread) < amt {
    			amt = len(toread)
    		}
    		copy(p, toread)
    		r.off += int64(amt)
    		return amt, nil
    	}
    	return io.ReadFull(r.rdr, p)
    }
    
    func (r *MReader) ReadByte() (byte, error) {
    	if r.fileView != nil {
    		toread := r.fileView[r.off:]
    		if len(toread) < 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:12:25 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/coverage/slicereader/slicereader.go

    	r := Reader{
    		b:        b,
    		readonly: readonly,
    	}
    	return &r
    }
    
    func (r *Reader) Read(b []byte) (int, error) {
    	amt := len(b)
    	toread := r.b[r.off:]
    	if len(toread) < amt {
    		amt = len(toread)
    	}
    	copy(b, toread)
    	r.off += int64(amt)
    	return amt, nil
    }
    
    func (r *Reader) Seek(offset int64, whence int) (ret int64, err error) {
    	switch whence {
    	case io.SeekStart:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. src/internal/coverage/slicewriter/slicewriter.go

    func (sws *WriteSeeker) BytesWritten() []byte {
    	return sws.payload
    }
    
    func (sws *WriteSeeker) Read(p []byte) (n int, err error) {
    	amt := len(p)
    	toread := sws.payload[sws.off:]
    	if len(toread) < amt {
    		amt = len(toread)
    	}
    	copy(p, toread)
    	sws.off += int64(amt)
    	return amt, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:26 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/encryption-v1_test.go

    				currentPartBytes := v - partOffset
    				currentPartDareBytes := v - partDarePkgOffset
    				if currentPartBytes < toRead {
    					toRead -= currentPartBytes
    					l += getEncSize(currentPartDareBytes)
    				} else {
    					// current part has the last
    					// byte required
    					lbPartOffset := partOffset + toRead - 1
    
    					// round up the lbPartOffset
    					// to the end of the
    					// corresponding DARE package
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  9. src/compress/flate/dict_decoder.go

    // before calling any other dictDecoder methods.
    func (dd *dictDecoder) readFlush() []byte {
    	toRead := dd.hist[dd.rdPos:dd.wrPos]
    	dd.rdPos = dd.wrPos
    	if dd.wrPos == len(dd.hist) {
    		dd.wrPos, dd.rdPos = 0, 0
    		dd.full = true
    	}
    	return toRead
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6K bytes
    - Viewed (0)
  10. 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)
Back to top