Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 155 for EOF (0.05 sec)

  1. internal/grid/grid.go

    		internalByteBuffer.Put(&b)
    		return
    	}
    }
    
    // readAllInto reads from r and appends to b until an error or EOF and returns the data it read.
    // A successful call returns err == nil, not err == EOF. Because readAllInto is
    // defined to read from src until EOF, it does not treat an EOF from Read
    // as an error to be reported.
    func readAllInto(b []byte, r *wsutil.Reader, want int64) ([]byte, error) {
    	read := int64(0)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    		t.Errorf(`Peek(4) on "abcd", EOF = %q, %v; want "abcd", nil`, string(s), err)
    	}
    	if n, err := buf.Read(p[0:5]); string(p[0:n]) != "abcd" || err != nil {
    		t.Fatalf("Read after peek = %q, %v; want abcd, EOF", p[0:n], err)
    	}
    	if n, err := buf.Read(p[0:1]); string(p[0:n]) != "" || err != io.EOF {
    		t.Fatalf(`second Read after peek = %q, %v; want "", EOF`, p[0:n], err)
    	}
    }
    
    type dataAndEOFReader string
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  3. ci/official/containers/ml_build/setup.python.sh

    VERSION=$1
    REQUIREMENTS=$2
    
    # Install Python packages for this container's version
    if [[ ${VERSION} == "python3.13" ]]; then
      cat >pythons.txt <<EOF
    $VERSION
    $VERSION-dev
    $VERSION-venv
    EOF
    else
      cat >pythons.txt <<EOF
    $VERSION
    $VERSION-dev
    $VERSION-venv
    $VERSION-distutils
    EOF
    fi
    
    /setup.packages.sh pythons.txt
    
    # Re-link pyconfig.h from x86_64-linux-gnu into the devtoolset directory
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 16 23:34:34 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. ci/official/utilities/cleanup_docker.sh

    # ==============================================================================
    cat <<EOF
    IMPORTANT: These tests ran under docker. This script does not clean up the
    container for you! You can delete the container with:
    
    $ docker rm -f tf
    
    You can also execute more commands within the container with e.g.:
    
    $ docker exec tf bazel clean
    $ docker exec -it tf bash
    EOF
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 10 20:26:29 UTC 2023
    - 998 bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    		return nil, nil, err // EOF is okay here; exactly 0 bytes read
    	}
    	if bytes.Equal(tr.blk[:], zeroBlock[:]) {
    		if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil {
    			return nil, nil, err // EOF is okay here; exactly 1 block of zeros read
    		}
    		if bytes.Equal(tr.blk[:], zeroBlock[:]) {
    			return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. internal/s3select/csv/reader.go

    		r.readerWg.Wait()
    		r.close = nil
    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    	}
    	return r.readCloser.Close()
    }
    
    // nextSplit will attempt to skip a number of bytes and
    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *Reader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. internal/s3select/json/preader_test.go

    				t.Fatal(err)
    			}
    			r := NewPReader(f, &ReaderArgs{})
    			var record sql.Record
    			for {
    				record, err = r.Read(record)
    				if err != nil {
    					break
    				}
    			}
    			r.Close()
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    
    		t.Run(file.Name()+"-close", func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. internal/s3select/json/reader_test.go

    				t.Fatal(err)
    			}
    			r := NewReader(f, &ReaderArgs{})
    			var record sql.Record
    			for {
    				record, err = r.Read(record)
    				if err != nil {
    					break
    				}
    			}
    			r.Close()
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    
    		t.Run(file.Name()+"-close", func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. .github/workflows/check-bad-merge.yml

          - name: Read output file
            id: read_output
            if: ${{ always() }}
            run: |
              cat output.txt
              OUTPUT=$(cat output.txt)
              echo "OUTPUT<<EOF" >> $GITHUB_ENV
              echo "$OUTPUT" >> $GITHUB_ENV
              echo "EOF" >> $GITHUB_ENV
          - name: Comment on PR if check failed
            if: ${{ failure() }}
            uses: actions/github-script@v7
            with:
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Oct 11 18:32:33 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. cmd/perf-tests.go

    	n.firstToDisconnect = time.Time{}
    }
    
    // Reader to read random data.
    type netperfReader struct {
    	n   uint64
    	eof chan struct{}
    	buf []byte
    }
    
    func (m *netperfReader) Read(b []byte) (int, error) {
    	select {
    	case <-m.eof:
    		return 0, io.EOF
    	default:
    	}
    	n := copy(b, m.buf)
    	atomic.AddUint64(&m.n, uint64(n))
    	return n, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top