Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 446 for readArg (0.11 sec)

  1. src/os/fifo_test.go

    		return
    	}
    
    	// Loop reading from FIFO until EOF to ensure that the reader
    	// is not blocked infinitely, otherwise there is something wrong
    	// with the netpoller.
    	for {
    		_, err = r.Read(buf)
    		if errors.Is(err, io.EOF) {
    			break
    		}
    		if err != nil && !errors.Is(err, syscall.EAGAIN) {
    			t.Errorf("Error reading bytes from fifo: %v", err)
    			return
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libexport/load.h

      // Returns a list of function defs in the SavedModel.
      const protobuf::RepeatedPtrField<FunctionDef>& GetFunctionDefs();
    
      // Returns a BundleReader for reading variable values.
      //
      // This TFPackage retains ownership of the underlying reader.
      tensorflow::BundleReader* GetVariableReader() {
        return variable_reader_.get();
      }
    
      // Returns whether or not we found a valid checkpoint when loading the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 13 06:33:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/precondition/PredicatesFile.java

         * <p>
         * The csv is sudo in the sense, that you can comment by using "#"
         *
         * @param resource the resource file being used
         * @return a set of sets of strings representing the values in the file
         */
        public static Set<Set<String>> readAllowedCombinations(String resource) {
            try (BufferedReader reader = new BufferedReader(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/erasure-heal_test.go

    		closeBitrotWriters(writers)
    		if err != nil {
    			t.Fatalf("Test %d: failed to create random test data: %v", i, err)
    		}
    
    		readers := make([]io.ReaderAt, len(disks))
    		for i, disk := range disks {
    			shardFilesize := erasure.ShardFileSize(test.size)
    			readers[i] = newBitrotReader(disk, nil, "testbucket", "testobject", shardFilesize, test.algorithm, bitrotWriterSum(writers[i]), erasure.ShardSize())
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/internal/coverage/decodemeta/decodefile.go

    	"io"
    	"os"
    )
    
    // CoverageMetaFileReader provides state and methods for reading
    // a meta-data file from a code coverage run.
    type CoverageMetaFileReader struct {
    	f          *os.File
    	hdr        coverage.MetaFileHeader
    	tmp        []byte
    	pkgOffsets []uint64
    	pkgLengths []uint64
    	strtab     *stringtab.Reader
    	fileRdr    *bufio.Reader
    	fileView   []byte
    	debug      bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 14 22:30:23 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loadxcoff/ldxcoff.go

    type ldSection struct {
    	xcoff.Section
    	sym loader.Sym
    }
    
    // TODO(brainman): maybe just add ReadAt method to bio.Reader instead of creating xcoffBiobuf
    
    // xcoffBiobuf makes bio.Reader look like io.ReaderAt.
    type xcoffBiobuf bio.Reader
    
    func (f *xcoffBiobuf) ReadAt(p []byte, off int64) (int, error) {
    	ret := ((*bio.Reader)(f)).MustSeek(off, 0)
    	if ret < 0 {
    		return 0, errors.New("fail to seek")
    	}
    	n, err := f.Read(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. docs/debugging/inspect/decrypt-v2.go

    		}
    		if stream.Name == "inspect.zip" {
    			if extracted {
    				return keepFileErr{errors.New("multiple inspect.zip streams found")}
    			}
    			_, err := io.Copy(w, stream)
    			if err != nil {
    				return fmt.Errorf("reading inspect stream: %w", err)
    			}
    			fmt.Println(okMsg)
    			extracted = true
    			continue
    		}
    		if err := stream.Skip(); err != nil {
    			return fmt.Errorf("stream skip: %w", err)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 21:22:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/internal/saferio/io.go

    // allocating all n bytes in cases where n is incorrect.
    //
    // The error is io.EOF only if no bytes were read.
    // If an io.EOF happens after reading some but not all the bytes,
    // ReadData returns io.ErrUnexpectedEOF.
    func ReadData(r io.Reader, n uint64) ([]byte, error) {
    	if int64(n) < 0 || n != uint64(int(n)) {
    		// n is too large to fit in int, so we can't allocate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/io/pipe.go

    func (r *PipeReader) Read(data []byte) (n int, err error) {
    	return r.pipe.read(data)
    }
    
    // Close closes the reader; subsequent writes to the
    // write half of the pipe will return the error [ErrClosedPipe].
    func (r *PipeReader) Close() error {
    	return r.CloseWithError(nil)
    }
    
    // CloseWithError closes the reader; subsequent writes
    // to the write half of the pipe will return the error err.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/builder/iptables_builder_impl.go

    	if rb.cfg.TraceLogging && idx >= 0 && command != log.UndefinedCommand {
    		match := params[:idx]
    		// 1337 group is just a random constant to be matched on the log reader side
    		// Size of 20 allows reading the IPv4 IP header.
    		match = append(match, "-j", "NFLOG", "--nflog-prefix", fmt.Sprintf(`%q`, command.Identifier), "--nflog-group", "1337", "--nflog-size", "20")
    		*ipt = append(*ipt, &Rule{
    			chain:  chain,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top